- Notifications
You must be signed in to change notification settings - Fork57
open a file or uri with the users preferred application (browser, editor, etc), cross platform
License
NotificationsYou must be signed in to change notification settings
pwnall/node-open
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Open a file or url in the user's preferred application.
varopen=require("open");open("http://www.google.com");
open
takes an optional argument specifying the program to be used to open thefile or URL.
open("http://www.google.com","firefox");
npm install open
- on
win32
usesstart
- on
darwin
usesopen
- otherwise uses the
xdg-open
script fromfreedesktop.org
The same care should be taken when calling open as if you were callingchild_process.execdirectly. If it is an executable it will run in a new shell.
About
open a file or uri with the users preferred application (browser, editor, etc), cross platform
Resources
License
Stars
Watchers
Forks
Packages0
No packages published