Socket
Book a DemoInstallSign in
Socket

linux-chrome

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linux-chrome

Launch a fresh Google Chrome on Linux

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 26 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts