UNPKG

recursive-exec

Version:

Run a command on each file in a folder and its subfolders (CLI tool designed for use in npm package.json scripts)

25 lines (23 loc) 623 B
//! recursive-exec v1.1.8 ~~ https://github.com/center-key/recursive-exec ~~ MIT License export type Settings = { echo: boolean; excludes: string[] | null; extensions: string[] | null; quiet: boolean; }; export type Result = { folder: string; file: string; path: string; filename: string; basename: string; name: string; command: string; }; declare const recursiveExec: { version: string; assertOk(ok: unknown, message: string | null): void; find(folder: string, command: string, options?: Partial<Settings>): Result[]; cli(): void; }; export { recursiveExec };