UNPKG

@nodesecure/fs-walk

Version:

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

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