zhouyang.xie d67a673a03 2.17.0 前端 Vue 化(P11 起步): app_frontEnd/web (Vue3+Vite6+TS, npm 从 npmmirror 装) 构建产物 release/web + serve.json web=28110 + cli web 组件 + 网关 /web 同源; 契约侧 Python 门与 Node 冒烟各 42/42 一致; 契约支持异步构建态 json_keys_any; 设计说明 §3.6; 文档/版本表同步 1 주 전
..
LICENSE d67a673a03 2.17.0 前端 Vue 化(P11 起步): app_frontEnd/web (Vue3+Vite6+TS, npm 从 npmmirror 装) 构建产物 release/web + serve.json web=28110 + cli web 组件 + 网关 /web 同源; 契约侧 Python 门与 Node 冒烟各 42/42 一致; 契约支持异步构建态 json_keys_any; 设计说明 §3.6; 文档/版本表同步 1 주 전
README.md d67a673a03 2.17.0 前端 Vue 化(P11 起步): app_frontEnd/web (Vue3+Vite6+TS, npm 从 npmmirror 装) 构建产物 release/web + serve.json web=28110 + cli web 组件 + 网关 /web 同源; 契约侧 Python 门与 Node 冒烟各 42/42 一致; 契约支持异步构建态 json_keys_any; 设计说明 §3.6; 文档/版本表同步 1 주 전
package.json d67a673a03 2.17.0 前端 Vue 化(P11 起步): app_frontEnd/web (Vue3+Vite6+TS, npm 从 npmmirror 装) 构建产物 release/web + serve.json web=28110 + cli web 组件 + 网关 /web 同源; 契约侧 Python 门与 Node 冒烟各 42/42 一致; 契约支持异步构建态 json_keys_any; 设计说明 §3.6; 文档/版本表同步 1 주 전

README.md

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.

🚄 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.

  1. rollup/plugins
  2. SuperchupuDev/tinyglobby
  3. pulumi/pulumi
  4. dotenvx/dotenvx
  5. mdn/yari
  6. streetwriters/notesnook
  7. imba/imba
  8. moroshko/react-scanner
  9. netlify/build
  10. yassinedoghri/astro-i18next
  11. selfrefactor/rambda
  12. whyboris/Video-Hub-App

🦮 LICENSE

Copyright © 2024 Abdullah Atta under MIT. Read full text here.