Launch a fresh Firefox on OSX.
const firefox = require('osx-firefox')
firefox({ uri: 'https://github.com/' }, (err, ps) => {
if (err) throw err
ps.on('error', console.error)
})
$ npm install osx-firefox
Firefox needs to be installed on your system as well.
Options:
display: Set process.env.DISPLAY to :${opts.display} for xvfb supportproxy: Proxy server settingsnoProxy: Proxy routes to skipbackground: Don't foreground the browserMIT