Readdirp
lastmod 2026-01-05created 2026-01-052 edits
A Node.js reader for efficiently reading large directories
About
- A tool designed to recursively read entire nested directories, addressing the limitations of fs.readdir-based approaches
- Designed around a Stream API, keeping RAM and CPU usage low even on large file trees
- Supports both the for-await pattern and event-based streams
- Can include only specific extensions or exclude directories such as .git
- Recommended to enable only when file size, mtime, etc. are needed
See also
- Filesystem
- nodejs
- Chokidar - An efficient cross-platform file watching library