Skip to content
This repository was archived by the owner on Jan 24, 2021. It is now read-only.
sindresorhusPublic archive

About

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

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

59 stars

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

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'

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

Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

About

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

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

59 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages