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)

26 lines (24 loc) 667 B
//! copy-file-util v1.3.2 ~~ https://github.com/center-key/copy-file-util ~~ MIT License export type Settings = { cd: string | null; targetFile: string | null; targetFolder: string | null; fileExtension: string | null; move: boolean; overwrite: boolean; platformEol: boolean; }; export type Result = { origin: string; dest: string; duration: number; moved: boolean; skipped: boolean; }; declare const copyFile: { assert(condition: unknown, errorMessage: unknown): void; cli(): void; cp(sourceFile: string, options?: Partial<Settings>): Result; reporter(result: Result): Result; }; export { copyFile };