UNPKG

@lou.codes/test

Version:

✅ Equality test with enforced readability

15 lines (14 loc) 545 B
import type { ReadOnlyURL } from "../ReadOnlyURL.js"; /** * Recursively search for files in the given directory and yields every file. If * a file path is passed initially, that file is shielded directly. * * @category File System * @example * ```typescript * getFiles("./tests/"); // ["./tests/lou.test.ts"] * ``` * @param fileOrDirectory Directory to get files from. * @yields Files recursively found in the given directory. */ export declare const getFilePaths: (fileOrDirectory: ReadOnlyURL) => AsyncGenerator<ReadOnlyURL, void>;