|
|
il y a 2 ans | |
|---|---|---|
| .. | ||
| History.md | il y a 2 ans | |
| LICENSE | il y a 2 ans | |
| README.md | il y a 2 ans | |
| index.js | il y a 2 ans | |
| package.json | il y a 2 ans | |
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());