opn () documon/src/opn.js 36
xpath documon.opn
file documon/src/opn.js

A cross-platform way to launch files from Node.

Direct copy of:
npmjs: https://www.npmjs.com/package/opn
github: https://github.com/sindresorhus/opn

USAGE

const opn = require('opn');

// Opens the image in the default image viewer
opn('unicorn.png').then(() => {
    // image viewer closed
});

// Opens the url in the default browser
opn('http://sindresorhus.com');

// Specify the app to open in
opn('http://sindresorhus.com', {app: 'firefox'});

// Specify app arguments
opn('http://sindresorhus.com', {app: ['google chrome', '--incognito']});