|
1 year ago | |
---|---|---|
.. | ||
History.md | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
index.js | 1 year ago | |
package.json | 1 year ago |
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
.
$ npm install node-homedir --save
const homedir = require('node-homedir');
console.log(homedir());