Launch a fresh Google Chrome on OSX.
const chrome = require('osx-chrome')
chrome({ uri: 'https://github.com/' }, (err, ps) => {
if (err) throw err
ps.on('error', console.error)
})
$ npm install osx-chrome
Google Chrome needs to be installed on your system as well.
Options:
display: Set process.env.DISPLAY to :${opts.display} for xvfb supportproxy: Proxy server settingsdataDir: Data dir, defaults to /tmp/$RANDOMbackground: Don't manually foreground the browserMIT