path-key
npmv4.0.0Get the PATH environment variable key cross-platform
Overview
path-key is an npm package that get the PATH environment variable key cross-platform. The latest version is 4.0.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need get the PATH environment variable key cross-platform 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).
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 path-key.
Dependencies
Dev (4)
Used by
Popular packages that depend on path-key.
Alternatives to path-key
Get paths for storing things like data, config, cache, etc
{G,S}et object values using MongoDB-like path notation
Convert Windows backslash paths to slash paths
Cross platform child_process#spawn and child_process#spawnSync
Resolve the path of a module like `require.resolve()` but from a given path
Really Fast Deep Clone
A framework for building native apps using React
Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`
Find the root directory of a Node.js project or npm package
Resolve the path of a module like `require.resolve()` but from the current working directory
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
Extract the non-magic parent path from a glob string.
Frequently installed together
An AST-based pattern checker for JavaScript.
Delightful JavaScript Testing.
Like which(1) unix command. Find the first instance of an executable in the PATH.
Get the command from a shebang
Version history
| Version | Published | License |
|---|---|---|
| 4.0.0latest | 5 years ago | MIT |
| 3.1.1 | 6 years ago | MIT |
| 3.1.0 | 7 years ago | MIT |
| 3.0.0 | 7 years ago | MIT |
| 2.0.1 | 9 years ago | MIT |
| 2.0.0 | 9 years ago | MIT |
| 1.0.0 | 10 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install path-key?
Run `npm install path-key` to add path-key to your npm project.
What license is path-key released under?
path-key is distributed under the MIT license.
How popular is path-key?
path-key has approximately 0 downloads per week and 1 known dependent packages.