chrome-launch

Light cross-platform launcher for Google Chrome

MIT 7 个版本
安装
npm install chrome-launch
yarn add chrome-launch
pnpm add chrome-launch
bun add chrome-launch
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.

版本列表
1.1.4 2015-08-27
1.1.3 2014-12-28
1.1.2 2014-12-28
1.1.1 2014-12-28
1.1.0 2014-12-28
1.0.1 2014-12-28
1.0.0 2014-12-28