home-dir

Get home directory path on any platform

npm install home-dir
1 513 downloads in the last day
10 162 downloads in the last week
45 707 downloads in the last month

home-dir

Get home directory path on any platform

Install

npm install home-dir --save

Usate

var homeDir = require('home-dir');
console.log(homeDir()); // Outputs full path to your home directory

// OR

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