node-open

open a file or uri with the users preferred application (browser, editor, etc), cross platform

  • 所有者: pwnall/node-open
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

open

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

Usage

var open = require("open");
open("http://www.google.com");

open takes 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 uses start
  • on darwin uses open
  • 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.

主要指标

概览
名称与所有者pwnall/node-open
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2012-06-07 13:55:47
推送于2021-02-12 16:15:48
最后一次提交2014-07-10 09:47:03
发布数1
最新版本名称v0.0.3 (发布于 2013-01-26 13:03:33)
第一版名称v0.0.3 (发布于 2013-01-26 13:03:33)
用户参与
星数560
关注者数13
派生数57
提交数35
已启用问题?
问题数47
打开的问题数32
拉请求数4
打开的拉请求数12
关闭的拉请求数9
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?