Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

os-homedir

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Issues
File Explorer

Advanced tools

os-homedir

Node.js 4 `os.homedir()` ponyfill

    2.0.0latest

Version published
Maintainers
1
Weekly downloads
8,538,672
decreased by-18.71%

Weekly downloads

Readme

Source

Deprecated

This is not needed anymore. Use require('os').homedir() instead.


os-homedir Build Status

Node.js 4 os.homedir() ponyfill

Install

$ npm install --save os-homedir

Usage

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

License

MIT © Sindre Sorhus

Keywords

FAQs

What is os-homedir?

Node.js 4 `os.homedir()` ponyfill

Is os-homedir popular?

The npm package os-homedir receives a total of 7,154,430 weekly downloads. As such, os-homedir popularity was classified as popular.

Is os-homedir well maintained?

We found that os-homedir demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 08 Nov 2018

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc