openurl
    Overview
    Documentation
    Insights
    Code
    Contributors
    Dependencies
    Alternatives

openurl

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

1.1.1  •  Updated 2 years ago  •  by Axel Rauschmayer  •  MIT License

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("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 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:

How often do you use dark themes on other websites?

Popularity

Weekly Downloads
684.6K
Stars
60

Maintenance

Development

Last ver 4 years ago
Created 8 years ago
Last commit 4 years ago
8 months between commits

Technology

Node version: 5.0.0
0 unpacked

Compliance

MIT License
OSI Approved
0 vulnerabilities

Contributors

3 contributors
rauschma
Maintainer, 7 commits, 1 merges
Works at 2ality
Sanat Gersappa
1 commits, 1 PRs
jmc-88
1 PRs
moldabekov
1 PRs
lufinkey
1 PRs

Dependencies

Tags

desktop
browser
Ready for the next level?
Join Openbase's founding team to help us build the ultimate open-source app store, work with the latest technologies, and enjoy great culture, impact and autonomy
Openbase helps developers choose among and use millions of open-source packages, so they can build amazing products faster.
© 2020 Devstore, Inc.