windows-firefox

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i windows-firefox

Weekly Downloads

6

Version

1.0.0

License

MIT

Unpacked Size

6.43 kB

Total Files

7

Last publish

Collaborators

  • vweevers