You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

openurl2

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openurl2

Open a URL via the operating system (http: in default browser, mailto: in mail client etc.

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
309
272.29%
Maintainers
1
Weekly downloads
 
Created
Source

openurl2 – Node.js module for opening URLs

openurl2 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("http://rauschma.de")
> require("openurl").open("mailto:john@example.com")

You can generate emails as follows:

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

Install via npm:

npm install openurl2

openurl2:

In the original openurl package, there was an issue with URL's opening a Windows Explorer window, instead of an Email Client Window. This has been fixed in this fork. As the original Project is no longer maintained, we figured there was no point sending in a pull request, and instead pushed this Fork.

Related reading:

  • Write your shell scripts in JavaScript, via Node.js

Keywords

desktop

FAQs

Package last updated on 12 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.