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

opener

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opener

Opens stuff, like webpages and files and executables, cross-platform

  • 1.5.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8M
decreased by-17.05%
Maintainers
1
Weekly downloads
 
Created

What is opener?

The opener npm package is a utility that allows you to open files, URLs, executables, and directories with their default application from Node.js. It is a cross-platform package that works on Windows, macOS, and Linux.

What are opener's main functionalities?

Open URLs in the default web browser

This feature allows you to open a URL in the user's default web browser. It is useful for redirecting users to web pages from a Node.js application.

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

Open files in the default application

This feature enables you to open a file with its associated default application. For example, a PDF would be opened in a PDF viewer.

const opener = require('opener');
opener('path/to/file.pdf');

Open directories in the default file explorer

With this feature, you can open a directory in the system's default file explorer, which can be handy for showing users where certain files are located.

const opener = require('opener');
opener('path/to/directory/');

Other packages similar to opener

FAQs

Package last updated on 29 Aug 2020

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