UNPKG

@nodesecure/fs-walk

Version:

Modern FileSystem (fs) utilities to lazy walk directories Asynchronously (but also Synchronously)

13 lines (12 loc) 361 B
import type { WalkOptions, WalkEntry } from "./types.js"; /** * @example * import { walk } from "@nodesecure/fs-walk"; * * for await (const [dirent, location] of walk(__dirname) { * if (dirent.isFile()) { * console.log(location); * } * } */ export declare function walk(directory: string, options?: WalkOptions): AsyncIterableIterator<WalkEntry>;