home-dir

1.0.0 • Public • Published

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;

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    57,970
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    57,970
  • 0.2.0
    356
  • 0.1.2
    23
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i home-dir

Weekly Downloads

58,349

Version

1.0.0

License

MIT

Last publish

Collaborators

  • scottcorgan