Socket
Book a DemoInstallSign in
Socket

just-launch

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

just-launch

Launch any browser on any OS!

latest
Source
npmnpm
Version
3.0.1
Version published
Maintainers
1
Created
Source

just-launch

Launch any browser, on any OS, with a fresh session!

$ just-launch chrome https://github.com/
const browser = await launch('chrome', { uri: 'https://github.com/' })

Browsers

just-launch comes with support for those browsers:

  • Chrome
  • Firefox
  • Safari
  • Edge
  • Electron
  • PhantomJS

On those operating systems:

  • mac OS
  • Windows
  • Linux

Usage

Use its CLI:

$ just-launch chrome https://github.com

Use its API:

const launch = require('just-launch')

// using async/await
const browser = await launch('chrome', { uri: 'https://github.com' })
browser.on('error', console.error)

// using promises
launch('chrome', { uri: 'https://github.com' })
.then(browser => {
  browser.on('error', console.error)
})

Installation

$ npm install [-g] just-launch

API

launch(browser, opts)

Possible browser values:

  • chrome
  • firefox
  • electron
  • phantom
  • safari (mac OS only)
  • edge (Windows only)

Options:

  • uri

Returns a Browser object:

Browser#on('error', cb)

An error occurred.

Browser#on('exit', cb)

The process exited.

Browser#kill()

Kill the browser process.

CLI

$ just-launch
Usage: just-launch BROWSER URI
  • osx chrome
  • osx firefox
  • osx safari
  • linux chrome
  • linux firefox
  • windows chrome
  • windows firefox
  • windows edge
  • electron-stream
  • phantomjs-stream

License

MIT

FAQs

Package last updated on 21 May 2018

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