which
npmv7.0.0Like which(1) unix command. Find the first instance of an executable in the PATH.
Overview
which is an npm package that like which(1) unix command. Find the first instance of an executable in the PATH. The latest version is 7.0.0, released under the ISC license.
Who should use it
Teams working in the npm ecosystem who need like which(1) unix command. Find the first instance of an executable in the PATH 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 (ISC).
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 which.
Dependencies
Runtime (1)
Dev (3)
Used by
Popular packages that depend on which.
Module for reading .pgpass
The official Node.js client library for Gel
Cross platform child_process#spawn and child_process#spawnSync
A Node.js module for sending notifications on native Mac, Windows (post and pre 8) and Linux (or Growl as fallback)
A replacement for process.exit that ensures stdio are fully drained before exiting.
yargs the modern, pirate-themed, successor to optimist.
Frequently installed together
An AST-based pattern checker for JavaScript.
Delightful JavaScript Testing.
The semantic version parser used by npm.
TypeScript definitions for node
Lightweight debugging utility for Node.js and the browser
RFC9562 UUIDs
A tiny (183B to 210B) and fast utility to ascend parent directories
Prettier is an opinionated code formatter
TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files
PostgreSQL client - pure javascript & libpq with the same API
A slightly nicer interface to Postgres over node-libpq
Get the PATH environment variable key cross-platform
Version history
| Version | Published | License |
|---|---|---|
| 7.0.0latest | 2 months ago | ISC |
| 6.0.1 | 5 months ago | ISC |
| 6.0.0 | 8 months ago | ISC |
| 5.0.0 | 1 year ago | ISC |
| 4.0.0 | 2 years ago | ISC |
| 3.0.1 | 3 years ago | ISC |
| 3.0.0 | 3 years ago | ISC |
| 2.0.2 | 6 years ago | ISC |
| 2.0.1 | 6 years ago | ISC |
| 2.0.0 | 6 years ago | ISC |
| 1.3.1 | 8 years ago | ISC |
| 1.3.0 | 9 years ago | ISC |
| 1.2.14 | 9 years ago | ISC |
| 1.2.13 | 9 years ago | ISC |
| 1.2.12 | 9 years ago | ISC |
| 1.2.11 | 10 years ago | ISC |
| 1.2.10 | 10 years ago | ISC |
| 1.2.9 | 10 years ago | ISC |
| 1.2.8 | 10 years ago | ISC |
| 1.2.7 | 10 years ago | ISC |
Maintainers
Frequently asked questions
How do I install which?
Run `npm install which` to add which to your npm project.
What license is which released under?
which is distributed under the ISC license.
How popular is which?
which has approximately 0 downloads per week and 6 known dependent packages.