- Notifications
You must be signed in to change notification settings - Fork0
⚡ The fastest directory crawler & globbing library for NodeJS. Crawls 1m files in < 1s
License
dave-swift/fdir
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
⚡The Fastest: Nothing similar (in the NodeJS world) beatsfdir
in speed. It can easily crawl a directory containing1 million files in < 1 second.
💡Stupidly Easy:fdir
uses expressive Builder pattern to build the crawler increasing code readability.
🤖Zero Dependencies*:fdir
only uses NodeJSfs
&path
modules.
🕺Astonishingly Small: < 2KB in size gzipped & minified.
🖮Hackable: Extendingfdir
is extremely simple now that the new Builder API is here. Feel free to experiment around.
*picomatch
must be installed manually by the user to support globbing.
You can install usingnpm
:
$ npm i fdir
or Yarn:
$ yarn add fdir
import{fdir}from"fdir";// create the builderconstapi=newfdir().withFullPaths().crawl("path/to/dir");// get all files in a directory synchronouslyconstfiles=api.sync();// or asynchronouslyapi.withPromise().then((files)=>{// do something with the result here.});
Documentation for all methods is availablehere.
Please check the benchmark against the latest versionhere.
fdir
is downloaded over 200k+ times a week by projects around the world. Here's a list of some notable projects usingfdir
in production:
Note: if you think your project should be here, feel free to open an issue. Notable is anything with a considerable amount of GitHub stars.
- rollup/plugins
- SuperchupuDev/tinyglobby
- pulumi/pulumi
- dotenvx/dotenvx
- mdn/yari
- streetwriters/notesnook
- imba/imba
- moroshko/react-scanner
- netlify/build
- yassinedoghri/astro-i18next
- selfrefactor/rambda
- whyboris/Video-Hub-App
Copyright © 2024 Abdullah Atta under MIT.Read full text here.
About
⚡ The fastest directory crawler & globbing library for NodeJS. Crawls 1m files in < 1s
Resources
License
Stars
Watchers
Forks
Packages0
Languages
- TypeScript92.9%
- JavaScript7.1%