UNPKG

copy-file-util

Version:

Copy or rename a file with optional package version number (CLI tool designed for use in npm package.json scripts)

23 lines (21 loc) 535 B
//! copy-file-util v1.2.3 ~~ https://github.com/center-key/copy-file-util ~~ MIT License export type Settings = { cd: string; targetFile: string; targetFolder: string; fileExtension: string; move: boolean; overwrite: boolean; }; export type Result = { origin: string; dest: string; duration: number; moved: boolean; skipped: boolean; }; declare const copyFile: { cp(sourceFile: string, options?: Partial<Settings>): Result; reporter(result: Result): Result; }; export { copyFile };