|
преди 1 година | |
---|---|---|
.. | ||
History.md | преди 1 година | |
LICENSE | преди 1 година | |
README.md | преди 1 година | |
index.js | преди 1 година | |
package.json | преди 1 година |
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());