env-paths
npmv4.0.0TypeScriptGet paths for storing things like data, config, cache, etc
Overview
env-paths is an npm package that get paths for storing things like data, config, cache, etc. 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 paths for storing things like data, config, cache, etc and value a focused 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
- 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.
Relationship graph
Dependencies (left) and dependents (right) of env-paths.
Dependencies
Runtime (1)
Dev (3)
Used by
Popular packages that depend on env-paths.
Alternatives to env-paths
Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`
Get the PATH environment variable key cross-platform
Resolve the path of a module like `require.resolve()` but from the current working directory
Extract the non-magic parent path from a glob string.
Find the root directory of a Node.js project or npm package
Get the first path that exists on disk of multiple paths
Find a file or directory by walking up parent directories
Resolve the path of a module like `require.resolve()` but from a given path
A tiny (183B to 210B) and fast utility to ascend parent directories
HTTP response freshness testing
LRU and FIFO caches for Client or Server
Mongoose MongoDB ODM
Frequently installed together
The semantic version parser used by npm.
Lightweight debugging utility for Node.js and the browser
TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files
Delightful JavaScript Testing.
TypeScript definitions for node
Like which(1) unix command. Find the first instance of an executable in the PATH.
IEEE 754 half-precision floating-point for JavaScript
Version history
| Version | Published | License |
|---|---|---|
| 4.0.0latest | 5 months ago | MIT |
| 3.0.0 | 4 years ago | MIT |
| 2.2.1 | 5 years ago | MIT |
| 2.2.0 | 7 years ago | MIT |
| 2.1.0 | 7 years ago | MIT |
| 2.0.0 | 7 years ago | MIT |
| 1.0.0 | 9 years ago | MIT |
| 0.3.1 | 9 years ago | MIT |
| 0.3.0 | 10 years ago | MIT |
| 0.2.0 | 10 years ago | MIT |
| 0.1.0 | 10 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install env-paths?
Run `npm install env-paths` to add env-paths to your npm project.
What license is env-paths released under?
env-paths is distributed under the MIT license.
How popular is env-paths?
env-paths has approximately 0 downloads per week and 1 known dependent packages.