syphonx-core
Version:
SyphonX is a template-driven solution for extracting data from HTML in a highly efficient way. It combines the power of jQuery, Regular Expressions, and Javascript into a declarative template-driven format that extracts and reshapes HTML data into JSON.
10 lines (9 loc) • 328 B
TypeScript
import { Transform } from "./public/index.js";
import { Template } from "../template.js";
export interface TransformOptions {
url?: string;
vars?: Record<string, unknown>;
debug?: boolean;
root?: unknown;
}
export declare function transform(transforms: Transform[] | Template, options?: TransformOptions): void;