chrome-opn

v1.0.1
A wrapper of opn. Opens URLs in Chrome.
opn chrome brower url urls website tab applescript duplicate and 1 more...

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

npm i chrome-opn

Metadata

  • MIT
  • Whatever
  • Jerome Tan
  • released 11/13/2018

Downloads

Maintainers