chrome-launch

Light cross-platform launcher for Google Chrome

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
chrome-launch
1.1.47 years ago8 years agoMinified + gzip package size for chrome-launch in KB

Readme

chrome-launch

Light cross-platform launcher for Google Chrome.

Usage

NPM

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 to process.env.
  • nuke: remove opts.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.