open
npmv11.0.2TypeScriptOpen stuff like URLs, files, executables. Cross-platform.
Safe to adopt
Yes — open scores well across adoption, maintenance, weight, supply chain, and licensing. 130.4M downloads per week and 4 known dependents. Last published 11 days ago. 6 releases in the last 2 years.
- AAdoption: grade A, Excellent.
130.4M downloads per week and 4 known dependents.
- AMaintenance: grade A, Excellent.
Last published 11 days ago. 6 releases in the last 2 years.
- BWeight: grade B, Good.
Pulls in 10 transitive packages, about 103 KB installed (at least — some of the tree is still being crawled).
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding open to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.
Licenses in the dependency tree
Every license you inherit by installing open, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >=20
- Module format
- ESM only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the open README.
import open, {openApp, apps} from 'open';
// Opens the image in the default image viewer and waits for the opened app to quit.
await open('unicorn.png', {wait: true});
console.log('The image viewer app quit');
// Opens the URL in the default browser.
await open('https://sindresorhus.com');
// Opens the URL in a specified browser.
await open('https://sindresorhus.com', {app: {name: 'firefox'}});
// Specify app arguments.
await open('https://sindresorhus.com', {app: {name: 'google chrome', arguments: ['--incognito']}});open vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| openthis page | 130.4M | 4 | MIT | 11 days ago |
| unicorn-magic | 31.6M | 1 | MIT | 1 day ago |
| has-flag | 166.9M | 1 | MIT | 1 day ago |
| default-browser | 52.6M | 1 | MIT | 1 day ago |
| cross-fetch | 32.9M | 2 | MIT | 1 day ago |
| query-string | 22.1M | 3 | MIT | 1 day ago |
Dependencies
Declared by open v11.0.2. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (6)
Dev (4)
Used by
Popular packages that depend on open.
Native-ESM powered web dev build tool
Framework for building one portable devtool integration that runs in any viewer.
Dev server middleware for React Native
No description provided.
Relationship graph
Dependencies (left) and dependents (right) of open.
Frequently installed together
Simple yet powerful framework for building command-line apps.
A lightweight JavaScript debugging utility, forked from debug, featuring TypeScript and ESM support.
URL utils for humans
A tiny (2.8kB) and fast utility for getting a MIME type from an extension or filename
Missing ECMAScript module utils for Node.js
A fast and minimal alternative to globby and fast-glob
Universal filesystem path utils
Model Context Protocol implementation for TypeScript
Run multiple promise-returning & async functions with limited concurrency
Minimal H(TTP) framework built for high performance and portability.
A faster, secure and convenient alternative for JSON.parse
The modular and type safe schema library for validating structural data
Release history
6 releases in the last two years, typically about 27 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 11.0.2latest | 11 days ago | 58 KB | MIT |
| 11.0.1 | 27 days ago | 58 KB | MIT |
| 11.0.0 | 9 months ago | 58 KB | MIT |
| 10.2.0 | 1 year ago | 54 KB | MIT |
| 10.1.2 | 1 year ago | 55 KB | MIT |
| 10.1.1 | 1 year ago | 54 KB | MIT |
| 10.1.0 | 2 years ago | 54 KB | MIT |
| 10.0.4 | 2 years ago | 47 KB | MIT |
| 10.0.3 | 2 years ago | 47 KB | MIT |
| 10.0.2 | 2 years ago | 47 KB | MIT |
| 10.0.1 | 2 years ago | 37 KB | MIT |
| 10.0.0 | 2 years ago | 37 KB | MIT |
| 9.1.0 | 3 years ago | 47 KB | MIT |
| 9.0.0 | 3 years ago | 47 KB | MIT |
| 8.4.2 | 3 years ago | 45 KB | MIT |
Overview
open is an npm package that open stuff like URLs, files, executables. Cross-platform. It is extremely widely used, with about 130.4M downloads per week and 4 known dependents in the graph. The latest version is 11.0.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need open stuff like URLs, files, executables. Cross-platform and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (130.4M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use open?
Yes — open scores well across adoption, maintenance, weight, supply chain, and licensing. 130.4M downloads per week and 4 known dependents. Last published 11 days ago. 6 releases in the last 2 years.
How do I install open?
Run `npm install open` to add open to your npm project.
How many dependencies does open have?
open declares 10 direct dependencies and pulls in 10 packages in total once its runtime tree is resolved totalling about 103 KB on disk.
What license is open released under?
open is distributed under the MIT license.
How popular is open?
open has approximately 130,421,477 downloads per week and 4 known dependent packages.
Is open still maintained?
The most recent release of open (v11.0.2) was published 11 days ago.
Does open run install scripts?
No. open does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.