</>PackageGraphPackageGraph

fdir

npmv6.5.0TypeScript

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

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

52 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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.

PackageWeekly downloadsDependentsLicenseLast release
fdirthis page03MIT1 year ago
escalade136.6M3MIT1 day ago
totalist30M1MIT1 day ago
make-dir02MIT1 day ago
find-up-simple02MIT1 day ago
@humanfs/types02Apache-2.01 day ago

Dependencies

Declared by fdir v6.5.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (35)

@types/glob ^8.1.0@types/mock-fs ^4.13.4@types/node ^20.9.4@types/picomatch ^4.0.0@types/tap ^15.0.11@vitest/coverage-v8 ^0.34.6all-files-in-tree ^1.1.2benny ^3.7.1csv-to-markdown-table ^1.3.1expect ^29.7.0fast-glob ^3.3.2fdir1 npm:fdir@1.2.0fdir2 npm:fdir@2.1.0fdir3 npm:fdir@3.4.2fdir4 npm:fdir@4.1.0fdir5 npm:fdir@5.0.0fs-readdir-recursive ^1.1.0get-all-files ^4.1.0glob ^10.3.10klaw-sync ^6.0.0mock-fs ^5.2.0picomatch ^4.0.2prettier ^3.5.3recur-readdir 0.0.1recursive-files ^1.0.2recursive-fs ^2.1.0recursive-readdir ^2.2.3rrdir ^12.1.0systeminformation ^5.21.17tiny-glob ^0.2.9ts-node ^10.9.1tsdown ^0.12.5typescript ^5.3.2vitest ^0.34.6walk-sync ^3.0.0

Used by

Popular packages that depend on fdir.

Relationship graph

Dependencies (left) and dependents (right) of fdir.

Frequently installed together

Release history

5 releases in the last two years, typically about 65 days apart.

Recent versions of fdir
VersionPublishedSizeLicense
6.5.0latest1 year ago52 KBMIT
6.4.61 year ago84 KBMIT
6.4.51 year ago45 KBMIT
6.4.41 year ago45 KBMIT
6.4.31 year ago44 KBMIT
6.4.21 year ago44 KBMIT
6.4.11 year ago44 KBMIT
6.4.01 year ago39 KBMIT
6.3.02 years ago37 KBMIT
6.2.02 years ago57 KBMIT
6.1.12 years ago55 KBMIT
6.1.03 years ago55 KBMIT
6.0.23 years ago54 KBMIT
6.0.13 years ago52 KBMIT
6.0.03 years ago53 KBMIT

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

Keywords

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.