Uses win-detect-browsers
const chrome = require('windows-chrome')
chrome({ uri: 'https://github.com/' }, function(err, ps){
ps.stderr.setEncoding('utf8')
ps.stderr.on('data', (data) => {
console.log('err', data);
});
// ...
})
$ npm install windows-chrome
Google Chrome needs to be installed on your system as well.
Callback is called with err
and child_process
objects.
Options:
uri
: Open this at startproxy
: Proxy server settingsdataDir
: Data dir, defaults to your systems' TMP