|
hace 1 año | |
---|---|---|
.. | ||
History.md | hace 1 año | |
LICENSE | hace 1 año | |
README.md | hace 1 año | |
index.js | hace 1 año | |
package.json | hace 1 año |
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());