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;