UNPKG

scandog

Version:
17 lines 646 B
import fs from 'node:fs'; import * as globby from 'globby'; type ScanOptions = { gitignore: boolean; }; export type PathResult = { path: string; withSuffix: string; exists: boolean; }; export declare const isTargetPath: (suffix: string) => (path: string) => boolean; export declare function getWithSuffix(path: string, suffix: string): string; type GlobbySync = typeof globby.globbySync; type ExistsSync = typeof fs.existsSync; declare const scan: (suffix: string, patterns: string[], options: ScanOptions, globbySync?: GlobbySync, existsSync?: ExistsSync) => PathResult[]; export default scan; //# sourceMappingURL=index.d.ts.map