Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 1021 Bytes

README.md

File metadata and controls

39 lines (32 loc) · 1021 Bytes

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