{"library":"totalist","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"3.0.1","tags":["javascript","list","recursive","files","glob","tree","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install totalist","imports":["import { totalist } from 'totalist';","import { totalist } from 'totalist/sync';","import type { Stats } from 'fs';"]},{"cmd":"yarn add totalist","imports":[]},{"cmd":"pnpm add totalist","imports":[]}],"homepage":null,"github":"https://github.com/lukeed/totalist","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/totalist","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/totalist/compatibility"}}