1.0.0 • Published 8 years ago

osx-safari v1.0.0

Weekly downloads
25
License
MIT
Repository
github
Last release
8 years ago

osx-safari

Launch a fresh safari on OSX.

Example

const safari = require('osx-safari')

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

Installation

$ npm install osx-safari

API

safari(opts, cb)

Options:

  • display: Sets DISPLAY=:${opts.display} for xvfb support
  • uri: The uri to open

License

MIT