1.0.0 • Published 7 years ago
windows-firefox v1.0.0
windows-firefox
Launch a fresh Firefox on Windows. See also osx-firefox and linux-firefox.
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 openchannel(string): filter installed versions by release channel, e.g.nightlyversion(string): filter versions by partial (e.g.62) or exact version. If neitherchannelnorversionis specified, the first found version will be launched.proxy,noProxyandprefs: passed tocreate-firefox-profileheadless(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-firefoxFirefox needs to be installed on your system as well.
License
MIT © Vincent Weevers
1.0.0
7 years ago