File tree Expand file tree Collapse file tree 4 files changed +6093
-0
lines changed Expand file tree Collapse file tree 4 files changed +6093
-0
lines changed Original file line number Diff line number Diff line change 11node_modules
2+ .vscode /
Original file line number Diff line number Diff line change 1+ declare module "html-table-to-json" {
2+ import * as cheerio from 'cheerio' ;
3+
4+ class HtmlTableToJson {
5+ headers : Array < any > ;
6+ results : Array < any > ;
7+ count : number ;
8+
9+ constructor ( html : string , opts ?: Object ) ;
10+
11+ static factory ( html : string , opts ?: Object ) : HtmlTableToJson ;
12+
13+ private _process ( ) : Array < any > ;
14+
15+ private _processTable ( tableIndex : number , table : CheerioElement ) : void ;
16+
17+ private _processRow (
18+ tableIndex : number ,
19+ index : number ,
20+ row : CheerioElement
21+ ) : void ;
22+
23+ private _buildHeaders ( index : number , table : CheerioElement ) : void ;
24+
25+ private _pruneEmptyRows ( tableIndex : number ) : void ;
26+ }
27+
28+ export = HtmlTableToJson ;
29+ }
You can’t perform that action at this time.
0 commit comments