totalist

JSON →
library 3.0.1 ·javascript
verified May 27, 2026

totalist is a highly optimized, minimalist (under 250 bytes gzipped) utility for recursively listing all files within a specified directory in Node.js. It enables developers to efficiently traverse file systems and apply a custom callback function to each file found, providing the relative path, absolute path, and the `fs.Stats` object directly. The package offers both asynchronous (default, since Node.js 8.x) and synchronous (since Node.js 6.x) modes to accommodate various application contexts and performance requirements. The current stable version is 3.0.1, which includes native ESM support via `exports` maps. Its primary differentiators are its minuscule footprint, direct integration with `fs.Stats` within the callback, and the avoidance of generating intermediate large file lists, making it suitable for performance-critical scenarios.

total hits 11
actors 5 distinct systems
last hit 7d ago Script
GPTBot
5
Script
1
Search engines
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France