copy-folder-util
Version:
Recursively copy files from one folder to another folder (CLI tool designed for use in npm package.json scripts)
26 lines (24 loc) • 650 B
TypeScript
//! copy-folder-util v1.1.5 ~~ https://github.com/center-key/copy-folder-util ~~ MIT License
export type Settings = {
basename: string;
cd: string;
fileExtensions: string[];
};
export type Results = {
source: string;
target: string;
count: number;
duration: number;
files: {
origin: string;
dest: string;
}[];
};
export type ReporterSettings = {
summaryOnly: boolean;
};
declare const copyFolder: {
cp(sourceFolder: string, targetFolder: string, options?: Partial<Settings>): Results;
reporter(results: Results, options?: Partial<ReporterSettings>): Results;
};
export { copyFolder };