</>PackageGraphPackageGraph

command-exists

npmv1.2.9

check whether a command line command exists in the current environment

Not recommended for new projects

No — command-exists should not be adopted for new projects. Last published 2338 days ago.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • FMaintenance: grade F, Failing.

    Last published 2338 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 13 KB installed.

  • 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 command-exists to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

13 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
No constraint declared
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the command-exists README.

var commandExists = require('command-exists');

commandExists('ls', function(err, commandExists) {

    if(commandExists) {
        // proceed confidently knowing this command is available
    }

});

command-exists vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
command-existsthis page01MIT6 years ago
commander451.1M11MIT1 day ago
yargs-parser178.8M2ISC1 day ago
meow36.7M1MIT1 day ago
yargs012MIT1 day ago
dashdash01MIT1 day ago

Dependencies

Declared by command-exists v1.2.9. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (3)

expect.js ^0.3.1jshint ^2.9.1mocha ^2.5.3

Used by

Popular packages that depend on command-exists.

Relationship graph

Dependencies (left) and dependents (right) of command-exists.

@react-native-com…command-exists
command-exists dependencies dependents

Frequently installed together

yamlnpm

JavaScript parser and stringifier for YAML

176.1M/wk6 dependentsISCTS
picocolorsnpm

The tiniest and the fastest library for terminal output formatting with ANSI colors

0/wk16 dependentsISCTS
deepmergenpm

A library for deep (recursive) merging of Javascript objects

0/wk5 dependentsMIT
oranpm

Elegant terminal spinner

0/wk6 dependentsMITTS
@react-native-community/cli-confignpm

This package is part of the [React Native CLI](../../README.md). It contains commands for managing the configuration of React Native app.

0/wk2 dependentsMITTS
@react-native-community/cli-toolsnpm

No description provided.

0/wk9 dependentsMITTS
@react-native-community/cli-typesnpm

No description provided.

0/wk9 dependentsMITTS
@react-native-community/cli-platform-applenpm

This package is part of the [React Native CLI](../../README.md). It contains utilities for building reusable commands targeting Apple platforms.

0/wk2 dependentsMITTS
@react-native-community/cli-platform-iosnpm

This package is part of the [React Native CLI](../../README.md). It contains commands for managing iOS part of React Native app.

0/wk2 dependentsMITTS
envinfonpm

Info about your dev environment for debugging purposes

0/wk2 dependentsMIT
@react-native-community/cli-platform-androidnpm

This package is part of the [React Native CLI](../../README.md). It contains commands for managing the Android part of React Native app.

0/wk2 dependentsMITTS
semvernpm

The semantic version parser used by npm.

0/wk55 dependentsISC

Release history

No releases in the last two years, typically about 24 days apart.

Recent versions of command-exists
VersionPublishedSizeLicense
1.2.9latest6 years ago13 KBMIT
1.2.88 years ago12 KBMIT
1.2.78 years ago12 KBMIT
1.2.68 years ago12 KBMIT
1.2.58 years ago11 KBMIT
1.2.48 years ago10 KBMIT
1.2.38 years ago10 KBMIT
1.2.29 years agoMIT
1.2.19 years agoMIT
1.2.09 years agoMIT
1.1.09 years agoMIT
1.0.210 years agoMIT
1.0.110 years agoMIT
1.0.010 years agoMIT
0.1.110 years agoMIT

Overview

command-exists is an npm package that check whether a command line command exists in the current environment. It has 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 focused 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

  • 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.

Maintainers

Keywords

Frequently asked questions

Should I use command-exists?

No — command-exists should not be adopted for new projects. Last published 2338 days ago.

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?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on command-exists.

Is command-exists still maintained?

The most recent release of command-exists (v1.2.9) was published 6 years ago.

Does command-exists run install scripts?

No. command-exists does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.