Socket
Socket
Sign inDemoInstall

opn-url

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    opn-url

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


Version published
Weekly downloads
7
increased by16.67%
Maintainers
1
Install size
3.03 kB
Created
Weekly downloads
 

Readme

Source

opn-url – Node.js module for opening URLs

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

You can generate emails as follows:

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

Install:

`npm install opn-url`

or

`yarn add opn-url`

opn-url:

In the original openurl and the cloned openurl2 package, there was an issue with URL's escaping & characters. This has been fixed in this fork. As is seems the original Project, and clone are no longer maintained, we attempted to send in a pull request, with no response we pushed this Fork.

Keywords

FAQs

Last updated on 23 Feb 2018

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc