|
hai 1 ano | |
---|---|---|
.. | ||
History.md | hai 1 ano | |
LICENSE | hai 1 ano | |
README.md | hai 1 ano | |
index.js | hai 1 ano | |
package.json | hai 1 ano |
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());