command-exists
npmv1.2.9check whether a command line command exists in the current environment
Overview
command-exists is an npm package that check whether a command line command exists in the current environment. It is very popular, with about 5.6M downloads per week and 1 known dependents in the graph. The latest version is 1.2.9, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need check whether a command line command exists in the current environment and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (5.6M weekly downloads).
- Clear open-source license (MIT).
- Lean dependency tree (3 direct dependencies).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of command-exists.
Dependencies
Dev (3)
Used by
Popular packages that depend on command-exists.
Alternatives to command-exists
yargs the modern, pirate-themed, successor to optimist.
the complete solution for node.js command-line programs
the mighty option parser used by yargs
Check if argv has a specific flag
option parsing and help generation
Colored symbols for various log levels. Example: `✔︎ Success`
Elegant terminal spinner
Spinners for use in the terminal
Flexible ascii progress bar
The Expo CLI
Parse CLI arguments.
Get the paths of edge browser easily
Frequently installed together
The semantic version parser used by npm.
Elegant terminal spinner
Port of C's wcwidth() and wcswidth()
Info about your dev environment for debugging purposes
No description provided.
This package is part of the [React Native CLI](../../README.md). It contains commands for managing the Android part of React Native app.
This package is part of the [React Native CLI](../../README.md). It contains commands for managing iOS part of React Native app.
No description provided.
This package is part of the [React Native CLI](../../README.md). It contains utilities for building reusable commands targeting Apple platforms.
JavaScript parser and stringifier for YAML
The tiniest and the fastest library for terminal output formatting with ANSI colors
This package is part of the [React Native CLI](../../README.md). It contains commands for managing the configuration of React Native app.
Version history
| Version | Published | License |
|---|---|---|
| 1.2.9latest | 6 years ago | MIT |
| 1.2.8 | 7 years ago | MIT |
| 1.2.7 | 8 years ago | MIT |
| 1.2.6 | 8 years ago | MIT |
| 1.2.5 | 8 years ago | MIT |
| 1.2.4 | 8 years ago | MIT |
| 1.2.3 | 8 years ago | MIT |
| 1.2.2 | 9 years ago | MIT |
| 1.2.1 | 9 years ago | MIT |
| 1.2.0 | 9 years ago | MIT |
| 1.1.0 | 9 years ago | MIT |
| 1.0.2 | 10 years ago | MIT |
| 1.0.1 | 10 years ago | MIT |
| 1.0.0 | 10 years ago | MIT |
| 0.1.1 | 10 years ago | MIT |
| 0.1.0 | 12 years ago | MIT |
Maintainers
Frequently asked questions
How do I install command-exists?
Run `npm install command-exists` to add command-exists to your npm project.
What license is command-exists released under?
command-exists is distributed under the MIT license.
How popular is command-exists?
command-exists has approximately 5,591,018 downloads per week and 1 known dependent packages.