hd

home-dir

Get home directory path on any platform

Showing:

Popularity

Downloads/wk

335K

GitHub Stars

10

Maintenance

Last Commit

7yrs ago

Contributors

1

Package

Dependencies

0

Size (min+gzip)

0.2KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

home-dir

Get home directory path on any platform

Install

npm install home-dir --save

Usage

var homeDir = require('home-dir');

console.log(homeDir()); // Outputs full path to your home directory

// OR

var dir = homeDir('/path/to/somehwere');
console.log(dir) // OUTPUTS: /(HOME)/path/to/somewhere

// OR

var homeDir = require('home-dir').directory;

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial