1.0.0 • Published 9 years ago
linux-chrome v1.0.0
linux-chrome
Launch a fresh Google Chrome on Linux.
Example
const chrome = require('linux-chrome')
const ps = chrome({ uri: 'https://github.com/' })
ps.on('error', console.error)Installation
$ npm install linux-chromeGoogle Chrome needs to be installed on your system as well.
API
ps = chrome(opts)
Returns a child_process object.
Options:
display: Set process.env.DISPLAY to:${opts.display}for xvfb supportproxy: Proxy server settingsdataDir: Data dir, defaults to/tmp/$RANDOM
License
MIT
1.0.0
9 years ago