node-html-parser 5.3.2 → 5.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -11
- package/dist/nodes/html.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -20,17 +20,17 @@ npm install --save node-html-parser
|
|
|
20
20
|
## Performance
|
|
21
21
|
|
|
22
22
|
```shell
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
html-parser :24.2329 ms/file ± 18.8092
|
|
24
|
+
htmljs-parser :4.78952 ms/file ± 5.50403
|
|
25
|
+
html-dom-parser :2.19594 ms/file ± 3.07470
|
|
26
|
+
html5parser :1.72007 ms/file ± 2.22713
|
|
27
|
+
cheerio :12.2220 ms/file ± 8.14063
|
|
28
|
+
parse5 :6.77691 ms/file ± 4.12002
|
|
29
|
+
htmlparser2 :2.33526 ms/file ± 3.43847
|
|
30
|
+
htmlparser :17.6260 ms/file ± 122.314
|
|
31
|
+
high5 :3.85676 ms/file ± 2.48878
|
|
32
|
+
node-html-parser:2.04585 ms/file ± 1.23787
|
|
33
|
+
node-html-parser (last release):2.00236 ms/file ± 1.22263
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
Tested with [htmlparser-benchmark](https://github.com/AndreasMadsen/htmlparser-benchmark).
|
package/dist/nodes/html.d.ts
CHANGED
|
@@ -95,7 +95,7 @@ export default class HTMLElement extends Node {
|
|
|
95
95
|
toString(): string;
|
|
96
96
|
get innerHTML(): string;
|
|
97
97
|
set innerHTML(content: string);
|
|
98
|
-
set_content(content: string | Node | Node[], options?: Options): this;
|
|
98
|
+
set_content(content: string | Node | Node[], options?: Partial<Options>): this;
|
|
99
99
|
replaceWith(...nodes: (string | Node)[]): void;
|
|
100
100
|
get outerHTML(): string;
|
|
101
101
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-html-parser",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.3",
|
|
4
4
|
"description": "A very fast HTML parser, generating a simplified DOM, with basic element query support.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"prepare": "cd test && yarn install"
|
|
32
32
|
},
|
|
33
33
|
"keywords": [
|
|
34
|
-
"parser",
|
|
35
34
|
"html",
|
|
35
|
+
"parser",
|
|
36
36
|
"nodejs",
|
|
37
37
|
"typescript"
|
|
38
38
|
],
|