open-with
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

OpenWith

Open files where you want them

Info

Opens a dialog window with the choice of application to open the file.

!! The dialog window opens only on Windows, on linux & darwin the file opens immediately.

Result:

Example code

const openWith = require('open-with');

const result = openWith.open(__dirname + '/index.js');
const openWith = require('open-with');
const path = require('path');

const result = openWith.open(path.join(__dirname, 'index.js'));

Package Sidebar

Install

npm i open-with

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

6.32 kB

Total Files

9

Last publish

Collaborators

  • noname666