🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
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
Version published
Weekly downloads
626K
-7.99%
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

desktop

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