list-paths is a Node.js utility that returns all directory paths (and optionally file paths) under a given directory, with sensible defaults to ignore node_modules, .git, and patterns from .gitignore. Version 1.0.2 is the current stable release; the package is minimal and stable with no recent updates. It differentiates from similar tools like glob or fast-glob by providing a simpler API focused solely on retrieving directory paths, with built-in filtering for Node.js projects. Ships TypeScript type definitions.
npm install list-pathsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage with default options, including files, and disabling node_modules filtering.
Pass { includeFiles: true } as second argument to listPaths.Explicitly set options to false when needed, e.g., { ignoreNodeModules: false }.Use path.resolve() or path.join(__dirname, ...) to get absolute paths if needed.
N/A
Use require('list-paths') instead of import.Run 'npm install list-paths' and ensure node_modules includes it.
Check that the path exists and is a directory; use try/catch around the call.
No dependency data recorded yet.