Skip to content

zxcnoname666/openWith-nodejs

Repository files navigation

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