home-dir
Get home directory path on any platform
Last updated 5 years ago by scottcorgan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install home-dir 
SYNC missed versions from official npm registry.

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;

Current Tags

  • 1.0.0                                ...           latest (5 years ago)

5 Versions

  • 1.0.0                                ...           5 years ago
  • 0.2.0                                ...           6 years ago
  • 0.1.2                                ...           7 years ago
  • 0.1.1                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 254
This Month 538
Last Day 100
Last Week 426
Last Month 2,156
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (126)

Copyright 2014 - 2017 © taobao.org |