UNPKG

@archer-edu/dxp-directus-cli

Version:
19 lines (18 loc) 1.12 kB
export declare function getFullPath(filePath: string): string; export declare function stripNewLines(text: string): string; export declare function replace(text: string, search: string, replace?: string): string; export declare function writeFile(filePath: string, content: string): string; export declare function cleanDir(directoryPath: string): void; export declare function convertTabsToSpaces(text: string): string; export declare function cleanFrontMatter(text: string): string; export declare function deleteFiles(directoryPath: string, predicate: (filename: string) => boolean): any; export declare function cleanObject<T extends object>(obj: T): T; export declare function formatDate(date: Date): string; export declare function fixRelativePath(path: string): string; export declare function renderSource({ text, url }: { text: string; url: string; }): string; export declare function fixImage(id: string, downloadToPath?: string): Promise<string>; export declare function fixImages(content: string, downloadToPath?: string): Promise<string>; export declare function assertDirectory(path: string): void;