1.0.2 • Published 9 months ago

open-with v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

OpenWith

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'));