UNPKG

@nodesecure/fs-walk

Version:

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

13 lines (12 loc) 311 B
/// <reference types="node" /> import { Dirent } from "node:fs"; export interface WalkOptions { /** * Whitelist of extensions * * @example * new Set([".js", ".cjs", ".mjs"]); */ extensions?: Set<string>; } export type WalkEntry = [dirent: Dirent, absoluteFileLocation: string];