mirror of
https://github.com/wassname/phaser.git
synced 2026-06-30 16:40:20 +08:00
open.js
open a file or url in the default associated application
install
npm install open
usage
var open = require('open');
open('http://www.google.com');
how it works
- on
win32usesstart - on
darwinusesopen - otherwise uses the xdg-open script from Portland
warning
The same care should be taken when calling open as if you were calling child_process.exec directly. If its an executable it will run in a new shell.