@bevry/fs-list
Version:
List the entire contents of a directory.
19 lines • 946 B
TypeScript
export type Paths = Array<string>;
/**
* List the entire contents of a directory, for Node.js versions 18.7.0 and up. 110-120ms.
* @returns the subpaths of the directory, sorted alphabetically.
* @experimental used internally, however external use is for your curiosity
*/
export declare function readdirRecursive(directory: string): Promise<Paths>;
/**
* List the entire contents of a directory, for Node.js versions 10 and up. 70-80ms.
* @returns the subpaths of the directory, sorted alphabetically.
* @experimental used internally, however external use is for your curiosity
*/
export declare function readdirFileTypes(directory: string): Promise<Paths>;
/**
* List the entire contents of a directory, selecting the appropriate technique for the Node.js version.
* @returns the subpaths of the directory, sorted alphabetically.
*/
export default function list(directory: string): Promise<Paths>;
//# sourceMappingURL=index.d.ts.map