Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: 1600d734c3
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (18 sloc) 1.02 KB

openurl – Node.js module for opening URLs

openurl is a Node.js module for opening a URL via the operating system. This will usually trigger actions such as:

  • http URLs: open the default browser
  • mailto URLs: open the default email client
  • file URLs: open a window showing the directory (on OS X)

Example interaction on the Node.js REPL:

> require("openurl").open("")
> require("openurl").open("")

You can generate emails as follows:

require("openurl").mailto(["", ""],
    { subject: "Hello!", body: "This is\nan automatically sent email!\n" });

Install via npm:

npm install openurl

I’m not yet terribly familiar with implementing npm packages, so any feedback is welcome (especially experience reports on Windows and Linux, which I can’t test on).

Related reading:

Jump to Line
Something went wrong with that request. Please try again.