Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.
/ os-homedir Public archive

[DEPRECATED] Node.js `os.homedir()` ponyfill

License

Notifications You must be signed in to change notification settings

sindresorhus/os-homedir

Repository files navigation

os-homedir Build Status

io.js 2.3.0 os.homedir() ponyfill

Ponyfill: A polyfill that doesn't overwrite the native method

Install

$ npm install --save os-homedir

Usage

var osHomedir = require('os-homedir');

console.log(osHomedir());
//=> /Users/sindresorhus

Related

  • 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