UNPKG

@hanivanrizky/nestjs-html-parser

Version:

A powerful NestJS HTML parsing service with XPath and CSS selector support, proxy configuration, random user agents, and rich response metadata including headers and status codes

34 lines (33 loc) 1.19 kB
/** * Advanced Transform Pipes Example * * This example demonstrates the new advanced transform functionality that supports * pipe arrays with baseUrl context, similar to the inspiration system. * It shows how to chain multiple transform pipes where each pipe's output * becomes the input for the next pipe. */ declare class ParseAsURLPipe { baseUrl?: string; transform(url: string): string; } declare class QueryAppendPipe { queryParams: Record<string, string>; transform(url: string): string; } declare class RegexReplacePipe { type: string; baseUrl?: string; regex: string; textReplacement: string; flag: string; transform(val: string): string; } declare class NumberNormalizePipe { transform(numString: string): number; } declare class DateFormatPipe { transform(dateString: string): number; } declare function demonstrateAdvancedTransformPipes(verbose?: boolean): Promise<void>; declare function demonstrateProductTransformPipes(verbose?: boolean): Promise<void>; export { DateFormatPipe, demonstrateAdvancedTransformPipes, demonstrateProductTransformPipes, NumberNormalizePipe, ParseAsURLPipe, QueryAppendPipe, RegexReplacePipe, };