Skip to content
JS
Package

os-homedir

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

v2.0.0, 8 Nov 2018MIT-Types: NonePolyfills and shims
$ npm install os-homedir
Deprecated on npm
This is not needed anymore. Use `require('os').homedir()` instead.

Key numbers

As of 25 Sept 2026
Weekly downloads
9.6m
+11% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
7 years ago
v2.0.0
GitHub stars
59
10 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
05m10m15mSept 2025Mar 2026Sept 2026High 12.7m (21 Oct 2025)Low 4.6m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

9,572,780 downloads last week, 41,863,808 in the last month. The 12-month change of +11% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
05 in total
Latest version
2.0.0, 8 Nov 20187 years ago
First published
11 May 2015
Last push to GitHub
24 Jan 20212,069 days before the snapshot
Repository archived
Yes
Open issues
0
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
-

Major versions

  1. v2 first release 2.0.0, 8 Nov 2018
  2. v1 first release 1.0.0, 13 Jun 2015
  3. v0 first release 0.1.0, 11 May 2015

Recent releases

VersionPublished
2.0.08 Nov 2018
1.0.230 Sept 2016
1.0.120 Jul 2015
1.0.013 Jun 2015
0.1.011 May 2015
Module format
-Not determined from package.json
TypeScript types
None
Node.js engine range
>=0.10.0
Runtimes
-
Unpacked size (npm)
3.2 kB
Dependencies (0)
None
npm install os-homedir
  • jsDelivrhttps://cdn.jsdelivr.net/npm/os-homedir@2.0.0/
  • unpkghttps://unpkg.com/os-homedir@2.0.0/
  • esm.shhttps://esm.sh/os-homedir@2.0.0
PackageWeekly downloadsGzipLast releaseModuleComparison
fromentries5.9m-5 years agoCommonJS-
formdata-node12.1m-2 years agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): deprecated.