fast-mhtml-maa
Version:
Parses mhtml files
22 lines (21 loc) • 468 B
TypeScript
declare module 'fast-mhtml' {
interface IParserConfig {
rewriteFn?: (url: string) => string;
maxFileSize?: number
}
interface IFileResult {
content: Buffer | string;
type: string;
filename: string;
}
export class Parser {
constructor(config?: IParserConfig);
parse(contents: Buffer | string);
rewrite();
spit(): IFileResult[];
}
export class Converter {
static serve();
static convert(filename: string);
}
}