userhome
npmv1.0.1A cross-platform path to the user's home
Overview
userhome is an npm package that a cross-platform path to the user's home. The latest version is 1.0.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need a cross-platform path to the user's home 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 (1 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 userhome.
Dependencies
Dev (1)
Used by
Popular packages that depend on userhome.
Alternatives to userhome
Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`
Get paths for storing things like data, config, cache, etc
Extract the non-magic parent path from a glob string.
Find a file or directory by walking up parent directories
Resolve the path of a module like `require.resolve()` but from a given path
Node.js path.parse() ponyfill
Convert Windows backslash paths to slash paths
Check if a filename is safe to use in a path join operation
Some useful utilities I often need
Get the first path that exists on disk of multiple paths
{G,S}et object values using MongoDB-like path notation
Resolve a URI relative to an optional base URI
Frequently installed together
Version history
| Version | Published | License |
|---|---|---|
| 1.0.1latest | 1 year ago | MIT |
| 1.0.0 | 12 years ago | MIT |
| 0.1.0 | 13 years ago | MIT |
Maintainers
Frequently asked questions
How do I install userhome?
Run `npm install userhome` to add userhome to your npm project.
What license is userhome released under?
userhome is distributed under the MIT license.
How popular is userhome?
userhome has approximately 0 downloads per week and 1 known dependent packages.