UNPKG

esmodule-builder

Version:

ECMAScript-Module (ES Module) builder.

26 lines (25 loc) 1.2 kB
declare const _default: { extractDirectoryPath: typeof extractDirectoryPath; extractFileTitlePath: typeof extractFileTitlePath; joinPath: typeof joinPath; resolvePath: typeof resolvePath; relativePath: typeof relativePath; normalizePath: typeof normalizePath; testDirectoryExists: typeof testDirectoryExists; testFileExists: typeof testFileExists; readFile: typeof readFile; writeFile: typeof writeFile; touchDirectories: typeof touchDirectories; }; export default _default; declare function extractDirectoryPath(path: string): string; declare function extractFileTitlePath(path: string, extension?: string): string; declare function joinPath(...paths: string[]): string; declare function resolvePath(...paths: string[]): string; declare function relativePath(baseDirectoryPath: string, path: string): string; declare function normalizePath(path: string): string; declare function testDirectoryExists(path: string): boolean; declare function testFileExists(path: string): boolean; declare function readFile(path: string): string; declare function writeFile(path: string, content: string): void; declare function touchDirectories(filepath: string): string;