Skip to content
JS
Package

require-directory

Recursively iterates over specified directory, require()'ing each file, and returning a nested hash structure containing those modules.

v2.1.1, 28 May 2015MITCommonJSTypes: None
$ npm install require-directory

Key numbers

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

Downloads

Last week 2026-09-15 to 2026-09-21
050m100m150mSept 2025Mar 2026Sept 2026High 126.6m (25 Aug 2026)Low 34.8m (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.

95,235,762 downloads last week, 459,314,153 in the last month. The 12-month change of +80% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
012 in total
Latest version
2.1.1, 28 May 201511 years ago
First published
27 Dec 2011
Last push to GitHub
23 Dec 20211,737 days before the snapshot
Repository archived
No
Open issues
13
Open pull requests
6
Commits, last 52 weeks
0
Dependents on npm
2,227

Major versions

  1. v2 first release 2.0.0, 29 Jul 2014
  2. v1 first release 1.0.0, 16 Dec 2012
  3. v0 first release 0.0.1, 27 Dec 2011

Recent releases

VersionPublished
2.1.128 May 2015
2.1.019 Feb 2015
2.0.029 Jul 2014
1.2.014 Nov 2013
1.1.11 Sept 2013
1.1.028 Aug 2013
1.0.223 Jun 2013
1.0.123 Jun 2013
1.0.016 Dec 2012
0.0.312 Dec 2012
0.0.212 Dec 2012
0.0.127 Dec 2011
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=0.10.0
Runtimes
-
Unpacked size (npm)
-
Dependencies (0)
None
npm install require-directory
  • jsDelivrhttps://cdn.jsdelivr.net/npm/require-directory@2.1.1/
  • unpkghttps://unpkg.com/require-directory@2.1.1/
  • esm.shhttps://esm.sh/require-directory@2.1.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.