linux-chrome

1.0.0 • Public • Published

linux-chrome

Launch a fresh Google Chrome on Linux.

Example

const chrome = require('linux-chrome')
 
const ps = chrome({ uri: 'https://github.com/' })
ps.on('error', console.error)

Installation

$ npm install linux-chrome

Google Chrome needs to be installed on your system as well.

API

ps = chrome(opts)

Returns a child_process object.

Options:

  • display: Set process.env.DISPLAY to :${opts.display} for xvfb support
  • proxy: Proxy server settings
  • dataDir: Data dir, defaults to /tmp/$RANDOM

License

MIT

/linux-chrome/

    Package Sidebar

    Install

    npm i linux-chrome

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • juliangruber