⚡ The fastest directory crawler & globbing library for NodeJS. Crawls 1m files in < 1s
new fdir().filter(p => p.endsWith(".js")).filter(p => p.startsWith(".nim"))
Install using:
$ npm i fdir
Options
object through the constructor. In place of that, now there is a new crawlWithOptions
that takes an Options
object in its second parameter:new fdir().crawlWithOptions("path/to/dir", { includeBasePath: true }).sync();
picomatch
is not installed.Options
object directly into the constructor, avoiding method chaining completely.withError
& crawl
.Install using:
npm i fdir
NOTE: This release follows semantic versioning and therefore, it is not backwards compatible with 2.x.