@netlify/content-engine
Version:
22 lines • 644 B
TypeScript
/**
* getRemoteFileExtension
* --
* Parses remote url to retrieve remote file extension
*
*/
export declare function getRemoteFileExtension(url: string): string;
/**
* getRemoteFileName
* --
* Parses remote url to retrieve remote file name
*
*/
export declare function getRemoteFileName(url: string): string;
export declare function createFileHash(input: string, length?: number): string;
/**
* createFilePath
* --
* Gets full file path while replacing forbidden characters with a `-`
*/
export declare function createFilePath(directory: string, filename: string, ext: string): string;
//# sourceMappingURL=filename-utils.d.ts.map