UNPKG

fdir

Version:

The fastest directory crawler & globbing alternative to glob, fast-glob, & tiny-glob. Crawls 1m files in < 1s

6 lines (5 loc) 376 B
/// <reference types="node" /> import { WalkerState } from "../../types"; import fs from "fs"; export type WalkDirectoryFunction = (state: WalkerState, crawlPath: string, directoryPath: string, depth: number, callback: (entries: fs.Dirent[], directoryPath: string, depth: number) => void) => void; export declare function build(isSynchronous: boolean): WalkDirectoryFunction;