os-homedir alternatives and similar modules
Based on the "Node.Js" category
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of os-homedir or a related project?
This is not needed anymore. Use
$ npm install --save os-homedir
const osHomedir = require('os-homedir'); console.log(osHomedir()); //=> '/Users/sindresorhus'
- user-home - Same as this module but caches the result
- home-or-tmp - Get the user home directory with fallback to the system temp directory
Get professional support for this package with a Tidelift subscription Tidelift helps make open source sustainable for maintainers while giving companiesassurances about security, maintenance, and licensing for their dependencies.