chrome-launch

v1.1.4
Light cross-platform launcher for Google Chrome
chrome launch process spawn browser client

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.

npm i chrome-launch

Metadata

  • MIT
  • Whatever
  • Hugh Kennedy
  • released 8/27/2015

Downloads

Maintainers