Lawsun d230cfbce0 first commit 1 year ago
..
History.md d230cfbce0 first commit 1 year ago
LICENSE d230cfbce0 first commit 1 year ago
README.md d230cfbce0 first commit 1 year ago
index.js d230cfbce0 first commit 1 year ago
package.json d230cfbce0 first commit 1 year ago

README.md

node-homedir

Get the effective user's homedir, if node.js >= v6.0.0 .

Aways return the homedir of the current executor, even execute with sudo -u [user] node app.js without -i.

Reference Issue

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Installation

$ npm install node-homedir --save

Usage

  const homedir = require('node-homedir');
  console.log(homedir());

License

MIT