Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open a file or url in the user's preferred application.

Usage

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

Installation

npm install open

How it works

  • onwin32 usesstart
  • ondarwin usesopen
  • otherwise uses thexdg-open script fromfreedesktop.org

Warning

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

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp