1.0.0 • Published 6 years ago

windows-firefox v1.0.0

Weekly downloads
26
License
MIT
Repository
github
Last release
6 years ago

windows-firefox

Launch a fresh Firefox on Windows. See also osx-firefox and linux-firefox.

npm status node AppVeyor build status Dependency status JavaScript Style Guide

Example

const firefox = require('windows-firefox')

firefox({ uri: 'https://github.com/' }, (err, cp) => {
  if (err) throw err
  cp.on('error', console.error)
})

API

firefox([options, ]callback)

The callback receives an error if any, a child process and a metadata object.

Options:

  • uri (string): URL to open
  • channel (string): filter installed versions by release channel, e.g. nightly
  • version (string): filter versions by partial (e.g. 62) or exact version. If neither channel nor version is specified, the first found version will be launched.
  • proxy, noProxy and prefs: passed to create-firefox-profile
  • headless (boolean): Run Firefox in headless mode. Available since Firefox 56.
  • devtools (boolean): Start with Developer Tools opened.
  • background: Don't foreground the browser.

Install

With npm do:

npm install windows-firefox

Firefox needs to be installed on your system as well.

License

MIT © Vincent Weevers