Open files where you want them
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.
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'));