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)

22 lines (20 loc) 528 B
//! recursive-exec v1.0.3 ~~ 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: { find(folder: string, command: string, options?: Partial<Settings>): Result[]; }; export { recursiveExec };