html-minifier-next
Version:
Super-configurable and well-tested web page minifier (enhanced successor of HTML Minifier)
23 lines • 861 B
TypeScript
export function stableStringify(obj: any): any;
export class LRU {
constructor(limit?: number);
limit: number;
map: Map<any, any>;
get(key: any): any;
set(key: any, value: any): void;
delete(key: any): void;
}
export function uniqueId(value: any): string;
export function identity(value: any): any;
export function isThenable(value: any): boolean;
export function lowercase(value: any): any;
/**
* Asynchronously replace matches in a string
* @param {string} str - Input string
* @param {RegExp} regex - Regular expression with global flag
* @param {Function} asyncFn - Async function to process each match
* @returns {Promise<string>} Processed string
*/
export function replaceAsync(str: string, regex: RegExp, asyncFn: Function): Promise<string>;
export function parseRegExp(value: any): any;
//# sourceMappingURL=utils.d.ts.map