thecodrr/fdir
Fork: 82 Star: 1261 (更新于 2024-05-19 03:06:52)
license: MIT
Language: TypeScript .
⚡ The fastest directory crawler & globbing library for NodeJS. Crawls 1m files in < 1s
最后发布版本: v6.1.1 ( 2023-11-06 01:28:54)
The Fastest Directory Crawler & Globber for NodeJS
⚡ The Fastest: Nothing similar (in the NodeJS world) beats fdir
in speed. It can easily crawl a directory containing 1 million files in < 1 second.
💡 Stupidly Easy: fdir
uses expressive Builder pattern to build the crawler increasing code readability.
🤖 Zero Dependencies*: fdir
only uses NodeJS fs
& path
modules.
🕺 Astonishingly Small: < 2KB in size gzipped & minified.
🖮 Hackable: Extending fdir
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.
Support
Do you like this project? Support me by donating, creating an issue, becoming a stargazer, or opening a pull request. Thanks.
🚄 Quickstart
Installation
You can install using npm
:
$ npm i fdir
or Yarn:
$ yarn add fdir
Usage
import { fdir } from "fdir";
// create the builder
const api = new fdir().withFullPaths().crawl("path/to/dir");
// get all files in a directory synchronously
const files = api.sync();
// or asynchronously
api.withPromise().then((files) => {
// do something with the result here.
});
Documentation:
Documentation for all methods is available here.
📊 Benchmarks:
Please check the benchmark against the latest version here.
🙏Used by:
fdir
is downloaded over 200k+ times a week by projects around the world. Here's a list of some notable projects using fdir
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.
- mdn/yari
- streetwriters/notesnook
- zhangdaren/miniprogram-to-uniapp
- imba/imba
- moroshko/react-scanner
- netlify/build
- FredKSchott/snowpack*
- yassinedoghri/astro-i18next
- immich-app/CLI
- selfrefactor/rambda
-
snowpack
has since been discontinued.
🦮 LICENSE
Copyright © 2023 Abdullah Atta under MIT. Read full text here.
最近版本更新:(数据更新于 2024-05-13 15:10:49)
2023-11-06 01:28:54 v6.1.1
2023-08-14 02:33:27 v6.1.0
2023-08-01 05:27:58 v6.0.2
2023-02-09 15:48:20 v6.0.1
2023-02-09 02:24:36 v6.0.0
2022-10-19 01:43:32 v5.3.0
2022-10-18 02:39:56 v5.2.1
2022-01-18 14:17:47 v5.2.0
2021-05-21 21:16:17 v5.1.0
2021-01-13 01:41:03 v5.0.0
主题(topics):
directory, directory-tree, fast, fast-glob, fdir, filesystem, fs, glob, hacktoberfest, javascript, nodejs, os, sys, walker
thecodrr/fdir同语言 TypeScript最近更新仓库
2024-07-03 11:29:30 immich-app/immich
2024-06-27 00:44:20 langfuse/langfuse
2024-06-25 21:34:23 ZuodaoTech/everyone-can-use-english
2024-06-25 02:22:22 typescript-eslint/typescript-eslint
2024-06-25 01:34:15 lobehub/lobe-chat
2024-06-21 17:44:25 janhq/jan