chrome-opn

1.0.1 • Public • Published

chrome-opn

A wrapper of opn. Opens URLs in Chrome.

On macOS, an Applescript is used to close duplicate tabs.

Install

npm install chrome-opn --save

Usage

const chromeOpn = require('chromeOpn');

// Opens the url in Chrome
chromeOpn('http://www.google.com');

// Specify the Chrome arguments
chromeOpn('http://www.google.com', ['--incognito']);

// Don't wait the opening of Chrome and fulfill the promise immediately
chromeOpn('http://www.google.com', null, false);

License

MIT

Dependencies (1)

Dev Dependencies (1)

Package Sidebar

Install

npm i chrome-opn

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

6.19 kB

Total Files

13

Last publish

Collaborators

  • jerometan