chrome-launch
v1.1.4
Published
Light cross-platform launcher for Google Chrome
Downloads
14,711
Maintainers
Readme
chrome-launch
Light cross-platform launcher for Google Chrome.
Usage
process = spawn(url, [options])
Spawns a new Chrome instance in a separate process using
child_process.spawn
.
Options include:
args
: additional command-line arguments to pass to Chrome. See here for a full list.dir
: user configuration directory to use. By default, one will be created and then removed when the process is killed.env
: environment variables to use. Defaults toprocess.env
.nuke
: removeopts.dir
when the process exits.
The following command-line options are passed to Chrome in addition to the ones you supply:
--no-first-run
--no-default-browser-check
--disable-translate
--disable-default-apps
--disable-popup-blocking
--disable-zero-browsers-open-for-tests
--user-data-dir=${opts.dir}
License
MIT. See LICENSE.md for details.