@poulpi/domtojson
Version:
Simple domtojson with gzip for more optimization
13 lines (12 loc) • 419 B
TypeScript
import { ParserConfig } from "./api/config";
export declare class Parser {
isDebug: boolean;
private config;
constructor(isDebug?: boolean, useGzip?: boolean);
api(fn: {
(api: ParserConfig): ParserConfig;
}): void;
toJson(element: HTMLElement): Promise<[] | String>;
toDom(json: [] | Uint8Array, element?: HTMLElement): Promise<HTMLElement>;
newInstance(): Parser;
}