Socket
Book a DemoInstallSign in
Socket

osx-chrome

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

osx-chrome

Launch a fresh Google Chrome on OSX

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

osx-chrome

Launch a fresh Google Chrome on OSX.

Example

const chrome = require('osx-chrome')

chrome({ uri: 'https://github.com/' }, (err, ps) => {
  if (err) throw err    
  ps.on('error', console.error)
})

Installation

$ npm install osx-chrome

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

API

chrome(opts, cb)

Options:

  • display: Set process.env.DISPLAY to :${opts.display} for xvfb support
  • proxy: Proxy server settings
  • dataDir: Data dir, defaults to /tmp/$RANDOM
  • background: Don't manually foreground the browser

License

MIT

FAQs

Package last updated on 24 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