Download and execute latest version of Firefox seamlessly. (experimental support for macOS)
npm install firefox-downloader
import Fetcher from "firefox-downloader";
// const Fetcher = require('firefox-downloader').default
const fetcher = new Fetcher(destination);
fetcher.download().then(firefoxPath => spawn(firefoxPath));
const fetcher = new Fetcher(destination: string, platform?: NodeJS.Platform)
fetcher.download(progressCallback?: (progress: number, size: number) => void): Promise<string>
Download Firefox to the provided destination. Take an optional function to indicate progress.
fetcher.getPath(): string
Give the path to Firefox executable.
fetcher.isDownloaded(): Promise<boolean>
Checks if the executable is available.