node-open

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

  • Owner: pwnall/node-open
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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.

Main metrics

Overview
Name With Ownerpwnall/node-open
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2012-06-07 13:55:47
Pushed At2021-02-12 16:15:48
Last Commit At2014-07-10 09:47:03
Release Count1
Last Release Namev0.0.3 (Posted on 2013-01-26 13:03:33)
First Release Namev0.0.3 (Posted on 2013-01-26 13:03:33)
用户参与
Stargazers Count560
Watchers Count13
Fork Count57
Commits Count35
Has Issues Enabled
Issues Count47
Issue Open Count32
Pull Requests Count4
Pull Requests Open Count12
Pull Requests Close Count9
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private