Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

openurl

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openurl

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

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
748K
decreased by-13.62%
Maintainers
1
Weekly downloads
 
Created

What is openurl?

The openurl npm package allows you to open URLs, files, and email addresses in the default application for your operating system. It is a simple utility that can be used to trigger the default browser, email client, or file viewer.

What are openurl's main functionalities?

Open a URL in the default web browser

This feature allows you to open a specified URL in the default web browser of the user's operating system.

const openurl = require('openurl');
openurl.open('http://www.google.com');

Open a file in the default application

This feature allows you to open a specified file in the default application associated with the file type on the user's operating system.

const openurl = require('openurl');
openurl.open('/path/to/your/file.txt');

Open an email client with a pre-filled email

This feature allows you to open the default email client with a new email draft pre-filled with the specified recipients, subject, and body.

const openurl = require('openurl');
openurl.mailto(['example@example.com'], { subject: 'Hello', body: 'Hello, world!' });

Other packages similar to openurl

Keywords

FAQs

Package last updated on 21 Jan 2016

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc