cdx-chores 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,43 @@
1
+ //#region src/cli/types.d.ts
2
+ interface RunCliOptions {
3
+ cwd?: string;
4
+ colorEnabled?: boolean;
5
+ now?: () => Date;
6
+ platform?: NodeJS.Platform;
7
+ stdout?: NodeJS.WritableStream;
8
+ stderr?: NodeJS.WritableStream;
9
+ stdin?: NodeJS.ReadStream;
10
+ displayPathStyle?: "relative" | "absolute";
11
+ }
12
+ //#endregion
13
+ //#region src/command.d.ts
14
+ declare function runCli(argv?: string[], runtime?: RunCliOptions): Promise<void>;
15
+ //#endregion
16
+ //#region src/cli/program/version-embedded.d.ts
17
+ declare const EMBEDDED_PACKAGE_VERSION = "0.0.7";
18
+ //#endregion
19
+ //#region src/utils/csv.d.ts
20
+ type CsvRecord = Record<string, unknown>;
21
+ declare function stringifyCsv(rows: CsvRecord[]): string;
22
+ declare function parseCsv(text: string): string[][];
23
+ declare function csvRowsToObjects(rows: string[][]): Array<Record<string, string>>;
24
+ //#endregion
25
+ //#region src/utils/datetime.d.ts
26
+ declare function formatUtcFileDateTime(date: Date): string;
27
+ declare function formatLocalFileDateTime(date: Date): string;
28
+ declare function formatUtcFileDateTimeISO(date: Date): string;
29
+ //#endregion
30
+ //#region src/utils/paths.d.ts
31
+ declare function defaultOutputPath(inputPath: string, nextExtension: string): string;
32
+ //#endregion
33
+ //#region src/utils/slug.d.ts
34
+ declare function slugifyName(value: string, fallback?: string): string;
35
+ declare function withNumericSuffix(value: string, index: number): string;
36
+ //#endregion
37
+ //#region src/utils/sleep.d.ts
38
+ declare function sleep(ms: number): Promise<void>;
39
+ //#endregion
40
+ //#region src/utils/append-all.d.ts
41
+ declare function appendAll<T>(target: T[], source: readonly T[]): void;
42
+ //#endregion
43
+ export { EMBEDDED_PACKAGE_VERSION, type RunCliOptions, appendAll, csvRowsToObjects, defaultOutputPath, formatLocalFileDateTime, formatUtcFileDateTime, formatUtcFileDateTimeISO, parseCsv, runCli, sleep, slugifyName, stringifyCsv, withNumericSuffix };