fdir
npmv6.5.0TypeScriptThe fastest directory crawler & globbing alternative to glob, fast-glob, & tiny-glob. Crawls 1m files in < 1s
Adopt with care
fdir is usable, with caveats. Last published 391 days ago. 8 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- CMaintenance: grade C, Fair — worth a look.
Last published 391 days ago. 8 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 52 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding fdir to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=12.0.0
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the fdir README.
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.
});fdir vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| fdirthis page | 0 | 3 | MIT | 1 year ago |
| escalade | 136.6M | 3 | MIT | 1 day ago |
| totalist | 30M | 1 | MIT | 1 day ago |
| make-dir | 0 | 2 | MIT | 1 day ago |
| find-up-simple | 0 | 2 | MIT | 1 day ago |
| @humanfs/types | 0 | 2 | Apache-2.0 | 1 day ago |
Dependencies
Declared by fdir v6.5.0. Runtime dependencies are installed with the package; dev dependencies are not.
Peer (1)
Dev (35)
Used by
Popular packages that depend on fdir.
It's a very fast and efficient glob library for Node.js
A fast and minimal alternative to globby and fast-glob
`jest-haste-map` is a module used by Jest, a popular JavaScript testing framework, to create a fast lookup of files in a project. It helps Jest efficiently locate and track changes in files during testing, making it particularly useful for large projects
Relationship graph
Dependencies (left) and dependents (right) of fdir.
Frequently installed together
TypeScript definitions for node
Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.
It's a very fast and efficient glob library for Node.js
This packages is a collection of utilities and helper functions
A native C++ Node module for querying and subscribing to filesystem events. Used by Parcel 2.
Bindings for the Watchman file watching service
This package contains shared types of Jest's packages.
Module for executing heavy tasks under forked processes in parallel, by providing a `Promise` based interface, minimum overhead, and bound workers.
A drop-in replacement for fs, making various improvements.
Convert Windows backslash paths to slash paths
No description provided.
the most correct and second fastest glob implementation in JavaScript
Release history
5 releases in the last two years, typically about 65 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 6.5.0latest | 1 year ago | 52 KB | MIT |
| 6.4.6 | 1 year ago | 84 KB | MIT |
| 6.4.5 | 1 year ago | 45 KB | MIT |
| 6.4.4 | 1 year ago | 45 KB | MIT |
| 6.4.3 | 1 year ago | 44 KB | MIT |
| 6.4.2 | 1 year ago | 44 KB | MIT |
| 6.4.1 | 1 year ago | 44 KB | MIT |
| 6.4.0 | 1 year ago | 39 KB | MIT |
| 6.3.0 | 2 years ago | 37 KB | MIT |
| 6.2.0 | 2 years ago | 57 KB | MIT |
| 6.1.1 | 2 years ago | 55 KB | MIT |
| 6.1.0 | 3 years ago | 55 KB | MIT |
| 6.0.2 | 3 years ago | 54 KB | MIT |
| 6.0.1 | 3 years ago | 52 KB | MIT |
| 6.0.0 | 3 years ago | 53 KB | MIT |
Overview
fdir is an npm package that the fastest directory crawler & globbing alternative to glob, fast-glob, & tiny-glob. Crawls 1m files in < 1s. It has 3 known dependents in the graph. The latest version is 6.5.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need the fastest directory crawler & globbing alternative to glob, fast-glob, & tiny-glob. Crawls 1m files in < 1s and value a focused solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- Large dependency tree (36 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use fdir?
fdir is usable, with caveats. Last published 391 days ago. 8 releases in the last 2 years.
How do I install fdir?
Run `npm install fdir` to add fdir to your npm project.
What license is fdir released under?
fdir is distributed under the MIT license.
How popular is fdir?
npm does not publish download counts. Within PackageGraph's crawl, 3 known packages depend on fdir.
Is fdir still maintained?
The most recent release of fdir (v6.5.0) was published 1 year ago.
Does fdir run install scripts?
No. fdir does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.