Package Exports
- open
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (open) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
open
Open a file or url in the user's preferred application.
Usage
var open = require("open");
open("http://www.google.com");
open
taks an optional argument specifying the program to be used to open the
file or URL.
open("http://www.google.com", "firefox");
Installation
npm install open
How it works
- on
win32
usesstart
- on
darwin
usesopen
- otherwise uses the
xdg-open
script from freedesktop.org
Warning
The same care should be taken when calling open as if you were calling child_process.exec directly. If it is an executable it will run in a new shell.