@stacksjs/stx
Version:
A performant UI Framework. Powered by Bun.
24 lines • 713 B
TypeScript
/**
* Generate SHA-256 hash of file content
*/
export declare function hashFile(filePath: string): Promise<string>;
/**
* Generate hash from buffer
*/
export declare function hashBuffer(buffer: Buffer | Uint8Array): string;
/**
* Generate hash from string
*/
export declare function hashString(str: string): string;
/**
* Generate cache key from source path and options
*/
export declare function generateCacheKey(src: string, options: Record<string, unknown>): string;
/**
* Get file modification time for cache validation
*/
export declare function getFileMtime(filePath: string): Promise<number>;
/**
* Check if file exists
*/
export declare function fileExists(filePath: string): Promise<boolean>;