node-homedir
Get the effective user's homedir.
Last updated 7 years ago by ngot .
MIT · Repository · Bugs · Original npm
$ cnpm install node-homedir 
SYNC missed versions from official npm registry.

node-homedir

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.

Reference Issue

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Installation

$ npm install node-homedir --save

Usage

  const homedir = require('node-homedir');
  console.log(homedir());

License

MIT

Current Tags

  • 1.1.1                                ...           latest (7 years ago)

1 Versions

  • 1.1.1                                ...           7 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (7)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org