rahad-media-downloader 2.1.10 → 2.1.13
Sign up to get free protection for your applications and to get access to all the features.
- package/.cache/replit/modules/nodejs-20.res +1 -0
- package/.cache/replit/modules/replit.res +1 -0
- package/.cache/typescript/5.3/node_modules/.package-lock.json +6 -0
- package/.cache/typescript/5.3/node_modules/@types/qs/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/qs/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/qs/index.d.ts +79 -0
- package/.cache/typescript/5.3/node_modules/@types/qs/package.json +65 -0
- package/.cache/typescript/5.3/package-lock.json +7 -0
- package/.cache/typescript/5.3/package.json +1 -1
- package/.cache/typescript/5.4/node_modules/.package-lock.json +185 -0
- package/.cache/typescript/5.4/node_modules/@types/caseless/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/caseless/README.md +48 -0
- package/.cache/typescript/5.4/node_modules/@types/caseless/index.d.ts +29 -0
- package/.cache/typescript/5.4/node_modules/@types/caseless/package.json +35 -0
- package/.cache/typescript/5.4/node_modules/@types/domhandler/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/domhandler/README.md +92 -0
- package/.cache/typescript/5.4/node_modules/@types/domhandler/index.d.ts +73 -0
- package/.cache/typescript/5.4/node_modules/@types/domhandler/package.json +25 -0
- package/.cache/typescript/5.4/node_modules/@types/domutils/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/domutils/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/domutils/index.d.ts +124 -0
- package/.cache/typescript/5.4/node_modules/@types/domutils/package.json +27 -0
- package/.cache/typescript/5.4/node_modules/@types/htmlparser2/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/htmlparser2/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/htmlparser2/index.d.ts +120 -0
- package/.cache/typescript/5.4/node_modules/@types/htmlparser2/package.json +45 -0
- package/.cache/typescript/5.4/node_modules/@types/node/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/node/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/.cache/typescript/5.4/node_modules/@types/node/assert.d.ts +1040 -0
- package/.cache/typescript/5.4/node_modules/@types/node/async_hooks.d.ts +541 -0
- package/.cache/typescript/5.4/node_modules/@types/node/buffer.d.ts +2363 -0
- package/.cache/typescript/5.4/node_modules/@types/node/child_process.d.ts +1542 -0
- package/.cache/typescript/5.4/node_modules/@types/node/cluster.d.ts +578 -0
- package/.cache/typescript/5.4/node_modules/@types/node/console.d.ts +452 -0
- package/.cache/typescript/5.4/node_modules/@types/node/constants.d.ts +19 -0
- package/.cache/typescript/5.4/node_modules/@types/node/crypto.d.ts +4522 -0
- package/.cache/typescript/5.4/node_modules/@types/node/dgram.d.ts +596 -0
- package/.cache/typescript/5.4/node_modules/@types/node/diagnostics_channel.d.ts +545 -0
- package/.cache/typescript/5.4/node_modules/@types/node/dns/promises.d.ts +473 -0
- package/.cache/typescript/5.4/node_modules/@types/node/dns.d.ts +853 -0
- package/.cache/typescript/5.4/node_modules/@types/node/dom-events.d.ts +124 -0
- package/.cache/typescript/5.4/node_modules/@types/node/domain.d.ts +170 -0
- package/.cache/typescript/5.4/node_modules/@types/node/events.d.ts +884 -0
- package/.cache/typescript/5.4/node_modules/@types/node/fs/promises.d.ts +1245 -0
- package/.cache/typescript/5.4/node_modules/@types/node/fs.d.ts +4317 -0
- package/.cache/typescript/5.4/node_modules/@types/node/globals.d.ts +411 -0
- package/.cache/typescript/5.4/node_modules/@types/node/globals.global.d.ts +1 -0
- package/.cache/typescript/5.4/node_modules/@types/node/http.d.ts +1889 -0
- package/.cache/typescript/5.4/node_modules/@types/node/http2.d.ts +2418 -0
- package/.cache/typescript/5.4/node_modules/@types/node/https.d.ts +550 -0
- package/.cache/typescript/5.4/node_modules/@types/node/index.d.ts +89 -0
- package/.cache/typescript/5.4/node_modules/@types/node/inspector.d.ts +2746 -0
- package/.cache/typescript/5.4/node_modules/@types/node/module.d.ts +315 -0
- package/.cache/typescript/5.4/node_modules/@types/node/net.d.ts +996 -0
- package/.cache/typescript/5.4/node_modules/@types/node/os.d.ts +495 -0
- package/.cache/typescript/5.4/node_modules/@types/node/package.json +217 -0
- package/.cache/typescript/5.4/node_modules/@types/node/path.d.ts +191 -0
- package/.cache/typescript/5.4/node_modules/@types/node/perf_hooks.d.ts +645 -0
- package/.cache/typescript/5.4/node_modules/@types/node/process.d.ts +1747 -0
- package/.cache/typescript/5.4/node_modules/@types/node/punycode.d.ts +117 -0
- package/.cache/typescript/5.4/node_modules/@types/node/querystring.d.ts +153 -0
- package/.cache/typescript/5.4/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/.cache/typescript/5.4/node_modules/@types/node/readline.d.ts +540 -0
- package/.cache/typescript/5.4/node_modules/@types/node/repl.d.ts +430 -0
- package/.cache/typescript/5.4/node_modules/@types/node/sea.d.ts +153 -0
- package/.cache/typescript/5.4/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/.cache/typescript/5.4/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/.cache/typescript/5.4/node_modules/@types/node/stream/web.d.ts +367 -0
- package/.cache/typescript/5.4/node_modules/@types/node/stream.d.ts +1707 -0
- package/.cache/typescript/5.4/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/.cache/typescript/5.4/node_modules/@types/node/test.d.ts +1470 -0
- package/.cache/typescript/5.4/node_modules/@types/node/timers/promises.d.ts +97 -0
- package/.cache/typescript/5.4/node_modules/@types/node/timers.d.ts +240 -0
- package/.cache/typescript/5.4/node_modules/@types/node/tls.d.ts +1217 -0
- package/.cache/typescript/5.4/node_modules/@types/node/trace_events.d.ts +197 -0
- package/.cache/typescript/5.4/node_modules/@types/node/tty.d.ts +208 -0
- package/.cache/typescript/5.4/node_modules/@types/node/url.d.ts +944 -0
- package/.cache/typescript/5.4/node_modules/@types/node/util.d.ts +2276 -0
- package/.cache/typescript/5.4/node_modules/@types/node/v8.d.ts +764 -0
- package/.cache/typescript/5.4/node_modules/@types/node/vm.d.ts +921 -0
- package/.cache/typescript/5.4/node_modules/@types/node/wasi.d.ts +181 -0
- package/.cache/typescript/5.4/node_modules/@types/node/worker_threads.d.ts +691 -0
- package/.cache/typescript/5.4/node_modules/@types/node/zlib.d.ts +530 -0
- package/.cache/typescript/5.4/node_modules/@types/node-fetch/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/node-fetch/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/node-fetch/externals.d.ts +32 -0
- package/.cache/typescript/5.4/node_modules/@types/node-fetch/index.d.ts +238 -0
- package/.cache/typescript/5.4/node_modules/@types/node-fetch/package.json +83 -0
- package/.cache/typescript/5.4/node_modules/@types/qs/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/qs/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/qs/index.d.ts +79 -0
- package/.cache/typescript/5.4/node_modules/@types/qs/package.json +65 -0
- package/.cache/typescript/5.4/node_modules/@types/request/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/request/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/request/index.d.ts +395 -0
- package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/License +19 -0
- package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/README.md +350 -0
- package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/README.md.bak +350 -0
- package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/index.d.ts +51 -0
- package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/lib/browser.js +2 -0
- package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/lib/form_data.js +483 -0
- package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/lib/populate.js +10 -0
- package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/package.json +68 -0
- package/.cache/typescript/5.4/node_modules/@types/request/package.json +70 -0
- package/.cache/typescript/5.4/node_modules/@types/tough-cookie/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/tough-cookie/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/tough-cookie/index.d.ts +321 -0
- package/.cache/typescript/5.4/node_modules/@types/tough-cookie/package.json +35 -0
- package/.cache/typescript/5.4/node_modules/asynckit/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/asynckit/README.md +233 -0
- package/.cache/typescript/5.4/node_modules/asynckit/bench.js +76 -0
- package/.cache/typescript/5.4/node_modules/asynckit/index.js +6 -0
- package/.cache/typescript/5.4/node_modules/asynckit/lib/abort.js +29 -0
- package/.cache/typescript/5.4/node_modules/asynckit/lib/async.js +34 -0
- package/.cache/typescript/5.4/node_modules/asynckit/lib/defer.js +26 -0
- package/.cache/typescript/5.4/node_modules/asynckit/lib/iterate.js +75 -0
- package/.cache/typescript/5.4/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- package/.cache/typescript/5.4/node_modules/asynckit/lib/readable_parallel.js +25 -0
- package/.cache/typescript/5.4/node_modules/asynckit/lib/readable_serial.js +25 -0
- package/.cache/typescript/5.4/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- package/.cache/typescript/5.4/node_modules/asynckit/lib/state.js +37 -0
- package/.cache/typescript/5.4/node_modules/asynckit/lib/streamify.js +141 -0
- package/.cache/typescript/5.4/node_modules/asynckit/lib/terminator.js +29 -0
- package/.cache/typescript/5.4/node_modules/asynckit/package.json +63 -0
- package/.cache/typescript/5.4/node_modules/asynckit/parallel.js +43 -0
- package/.cache/typescript/5.4/node_modules/asynckit/serial.js +17 -0
- package/.cache/typescript/5.4/node_modules/asynckit/serialOrdered.js +75 -0
- package/.cache/typescript/5.4/node_modules/asynckit/stream.js +21 -0
- package/.cache/typescript/5.4/node_modules/combined-stream/License +19 -0
- package/.cache/typescript/5.4/node_modules/combined-stream/Readme.md +138 -0
- package/.cache/typescript/5.4/node_modules/combined-stream/lib/combined_stream.js +208 -0
- package/.cache/typescript/5.4/node_modules/combined-stream/package.json +25 -0
- package/.cache/typescript/5.4/node_modules/combined-stream/yarn.lock +17 -0
- package/.cache/typescript/5.4/node_modules/delayed-stream/License +19 -0
- package/.cache/typescript/5.4/node_modules/delayed-stream/Makefile +7 -0
- package/.cache/typescript/5.4/node_modules/delayed-stream/Readme.md +141 -0
- package/.cache/typescript/5.4/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- package/.cache/typescript/5.4/node_modules/delayed-stream/package.json +27 -0
- package/.cache/typescript/5.4/node_modules/domelementtype/LICENSE +11 -0
- package/.cache/typescript/5.4/node_modules/domelementtype/index.js +15 -0
- package/.cache/typescript/5.4/node_modules/domelementtype/package.json +16 -0
- package/.cache/typescript/5.4/node_modules/domelementtype/readme.md +1 -0
- package/.cache/typescript/5.4/node_modules/domhandler/.travis.yml +6 -0
- package/.cache/typescript/5.4/node_modules/domhandler/LICENSE +11 -0
- package/.cache/typescript/5.4/node_modules/domhandler/index.js +217 -0
- package/.cache/typescript/5.4/node_modules/domhandler/lib/element.js +20 -0
- package/.cache/typescript/5.4/node_modules/domhandler/lib/node.js +44 -0
- package/.cache/typescript/5.4/node_modules/domhandler/package.json +41 -0
- package/.cache/typescript/5.4/node_modules/domhandler/readme.md +116 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/01-basic.json +57 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/02-single_tag_1.json +21 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/03-single_tag_2.json +21 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/04-unescaped_in_script.json +27 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/05-tags_in_comment.json +18 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/06-comment_in_script.json +18 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/07-unescaped_in_style.json +20 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/08-extra_spaces_in_tag.json +20 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/09-unquoted_attrib.json +20 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/10-singular_attribute.json +15 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/11-text_outside_tags.json +40 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/12-text_only.json +11 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/13-comment_in_text.json +19 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/14-comment_in_text_in_script.json +18 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/15-non-verbose.json +22 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/16-normalize_whitespace.json +47 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/17-xml_namespace.json +18 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/18-enforce_empty_tags.json +16 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/19-ignore_empty_tags.json +20 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/20-template_script_tags.json +20 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/21-conditional_comments.json +15 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/22-lowercase_tags.json +41 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/23-dom-lvl1.json +131 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/24-with-start-indices.json +85 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/25-with-end-indices.json +86 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/tests.js +60 -0
- package/.cache/typescript/5.4/node_modules/form-data/License +19 -0
- package/.cache/typescript/5.4/node_modules/form-data/README.md.bak +358 -0
- package/.cache/typescript/5.4/node_modules/form-data/Readme.md +358 -0
- package/.cache/typescript/5.4/node_modules/form-data/index.d.ts +62 -0
- package/.cache/typescript/5.4/node_modules/form-data/lib/browser.js +2 -0
- package/.cache/typescript/5.4/node_modules/form-data/lib/form_data.js +501 -0
- package/.cache/typescript/5.4/node_modules/form-data/lib/populate.js +10 -0
- package/.cache/typescript/5.4/node_modules/form-data/package.json +68 -0
- package/.cache/typescript/5.4/node_modules/mime-db/HISTORY.md +507 -0
- package/.cache/typescript/5.4/node_modules/mime-db/LICENSE +23 -0
- package/.cache/typescript/5.4/node_modules/mime-db/README.md +100 -0
- package/.cache/typescript/5.4/node_modules/mime-db/db.json +8519 -0
- package/.cache/typescript/5.4/node_modules/mime-db/index.js +12 -0
- package/.cache/typescript/5.4/node_modules/mime-db/package.json +60 -0
- package/.cache/typescript/5.4/node_modules/mime-types/HISTORY.md +397 -0
- package/.cache/typescript/5.4/node_modules/mime-types/LICENSE +23 -0
- package/.cache/typescript/5.4/node_modules/mime-types/README.md +113 -0
- package/.cache/typescript/5.4/node_modules/mime-types/index.js +188 -0
- package/.cache/typescript/5.4/node_modules/mime-types/package.json +44 -0
- package/.cache/typescript/5.4/node_modules/types-registry/README.md +2 -0
- package/.cache/typescript/5.4/node_modules/types-registry/index.json +1 -0
- package/.cache/typescript/5.4/node_modules/types-registry/package.json +20 -0
- package/.cache/typescript/5.4/node_modules/undici-types/README.md +6 -0
- package/.cache/typescript/5.4/node_modules/undici-types/agent.d.ts +31 -0
- package/.cache/typescript/5.4/node_modules/undici-types/api.d.ts +43 -0
- package/.cache/typescript/5.4/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/.cache/typescript/5.4/node_modules/undici-types/cache.d.ts +36 -0
- package/.cache/typescript/5.4/node_modules/undici-types/client.d.ts +97 -0
- package/.cache/typescript/5.4/node_modules/undici-types/connector.d.ts +34 -0
- package/.cache/typescript/5.4/node_modules/undici-types/content-type.d.ts +21 -0
- package/.cache/typescript/5.4/node_modules/undici-types/cookies.d.ts +28 -0
- package/.cache/typescript/5.4/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/.cache/typescript/5.4/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/.cache/typescript/5.4/node_modules/undici-types/errors.d.ts +128 -0
- package/.cache/typescript/5.4/node_modules/undici-types/fetch.d.ts +209 -0
- package/.cache/typescript/5.4/node_modules/undici-types/file.d.ts +39 -0
- package/.cache/typescript/5.4/node_modules/undici-types/filereader.d.ts +54 -0
- package/.cache/typescript/5.4/node_modules/undici-types/formdata.d.ts +108 -0
- package/.cache/typescript/5.4/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/.cache/typescript/5.4/node_modules/undici-types/global-origin.d.ts +7 -0
- package/.cache/typescript/5.4/node_modules/undici-types/handlers.d.ts +9 -0
- package/.cache/typescript/5.4/node_modules/undici-types/header.d.ts +4 -0
- package/.cache/typescript/5.4/node_modules/undici-types/index.d.ts +63 -0
- package/.cache/typescript/5.4/node_modules/undici-types/interceptors.d.ts +5 -0
- package/.cache/typescript/5.4/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/.cache/typescript/5.4/node_modules/undici-types/mock-client.d.ts +25 -0
- package/.cache/typescript/5.4/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/.cache/typescript/5.4/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/.cache/typescript/5.4/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/.cache/typescript/5.4/node_modules/undici-types/package.json +55 -0
- package/.cache/typescript/5.4/node_modules/undici-types/patch.d.ts +71 -0
- package/.cache/typescript/5.4/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/.cache/typescript/5.4/node_modules/undici-types/pool.d.ts +28 -0
- package/.cache/typescript/5.4/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/.cache/typescript/5.4/node_modules/undici-types/readable.d.ts +61 -0
- package/.cache/typescript/5.4/node_modules/undici-types/webidl.d.ts +220 -0
- package/.cache/typescript/5.4/node_modules/undici-types/websocket.d.ts +131 -0
- package/.cache/typescript/5.4/package-lock.json +197 -0
- package/.cache/typescript/5.4/package.json +1 -0
- package/index.js +1 -1
- package/package.json +37 -2
- package/.cache/replit/modules/nodejs-20:v32-20240401-269b323.res +0 -1
- package/.cache/replit/modules/replit:v8-20240329-787bc7d.res +0 -1
@@ -0,0 +1,92 @@
|
|
1
|
+
# Installation
|
2
|
+
> `npm install --save @types/domhandler`
|
3
|
+
|
4
|
+
# Summary
|
5
|
+
This package contains type definitions for domhandler (https://github.com/fb55/DomHandler#readme).
|
6
|
+
|
7
|
+
# Details
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/domhandler.
|
9
|
+
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/domhandler/index.d.ts)
|
10
|
+
````ts
|
11
|
+
export interface DomHandlerOptions {
|
12
|
+
/***
|
13
|
+
* Indicates whether the whitespace in text nodes should be normalized
|
14
|
+
* (= all whitespace should be replaced with single spaces). The default value is "false".
|
15
|
+
*/
|
16
|
+
normalizeWhitespace?: boolean | undefined;
|
17
|
+
|
18
|
+
/***
|
19
|
+
* Adds DOM level 1 properties to all elements.
|
20
|
+
*/
|
21
|
+
withDomLvl1?: boolean | undefined;
|
22
|
+
|
23
|
+
/***
|
24
|
+
* Indicates whether a startIndex property will be added to nodes.
|
25
|
+
* When the parser is used in a non-streaming fashion, startIndex is an integer
|
26
|
+
* indicating the position of the start of the node in the document.
|
27
|
+
* The default value is "false".
|
28
|
+
*/
|
29
|
+
withStartIndices?: boolean | undefined;
|
30
|
+
|
31
|
+
/***
|
32
|
+
* Indicates whether a endIndex property will be added to nodes.
|
33
|
+
* When the parser is used in a non-streaming fashion, endIndex is an integer
|
34
|
+
* indicating the position of the end of the node in the document.
|
35
|
+
* The default value is "false".
|
36
|
+
*/
|
37
|
+
withEndIndices?: boolean | undefined;
|
38
|
+
}
|
39
|
+
|
40
|
+
export interface DomElement {
|
41
|
+
attribs?: { [s: string]: string } | undefined;
|
42
|
+
children?: DomElement[] | undefined;
|
43
|
+
data?: any;
|
44
|
+
name?: string | undefined;
|
45
|
+
next?: DomElement | undefined;
|
46
|
+
parent?: DomElement | undefined;
|
47
|
+
prev?: DomElement | undefined;
|
48
|
+
type?: string | undefined;
|
49
|
+
}
|
50
|
+
|
51
|
+
export interface Element extends DomElement {
|
52
|
+
name: string;
|
53
|
+
}
|
54
|
+
|
55
|
+
export interface Node extends DomElement {
|
56
|
+
readonly firstChild: DomElement;
|
57
|
+
readonly lastChild: DomElement;
|
58
|
+
readonly nodeType: number;
|
59
|
+
}
|
60
|
+
|
61
|
+
export class DomHandler {
|
62
|
+
constructor(callback: (error: any, dom: DomElement[]) => any, options?: DomHandlerOptions);
|
63
|
+
|
64
|
+
onparserinit(parser: any): void;
|
65
|
+
|
66
|
+
/***
|
67
|
+
* Resets the handler back to starting state
|
68
|
+
*/
|
69
|
+
onreset(): void;
|
70
|
+
|
71
|
+
/***
|
72
|
+
* Signals the handler that parsing is done
|
73
|
+
*/
|
74
|
+
onend(): void;
|
75
|
+
onerror(error: Error): void;
|
76
|
+
onclosetag(): void;
|
77
|
+
onopentag(name: string, attribs: { [s: string]: string }): void;
|
78
|
+
ontext(data: string): void;
|
79
|
+
oncomment(data: string): void;
|
80
|
+
oncdatastart(): void;
|
81
|
+
oncommentend(): void;
|
82
|
+
onprocessinginstruction(name: string, data: string): void;
|
83
|
+
}
|
84
|
+
|
85
|
+
````
|
86
|
+
|
87
|
+
### Additional Details
|
88
|
+
* Last updated: Mon, 06 Nov 2023 22:41:05 GMT
|
89
|
+
* Dependencies: none
|
90
|
+
|
91
|
+
# Credits
|
92
|
+
These definitions were written by [Johan Davidsson](https://github.com/johandavidson).
|
@@ -0,0 +1,73 @@
|
|
1
|
+
export interface DomHandlerOptions {
|
2
|
+
/***
|
3
|
+
* Indicates whether the whitespace in text nodes should be normalized
|
4
|
+
* (= all whitespace should be replaced with single spaces). The default value is "false".
|
5
|
+
*/
|
6
|
+
normalizeWhitespace?: boolean | undefined;
|
7
|
+
|
8
|
+
/***
|
9
|
+
* Adds DOM level 1 properties to all elements.
|
10
|
+
*/
|
11
|
+
withDomLvl1?: boolean | undefined;
|
12
|
+
|
13
|
+
/***
|
14
|
+
* Indicates whether a startIndex property will be added to nodes.
|
15
|
+
* When the parser is used in a non-streaming fashion, startIndex is an integer
|
16
|
+
* indicating the position of the start of the node in the document.
|
17
|
+
* The default value is "false".
|
18
|
+
*/
|
19
|
+
withStartIndices?: boolean | undefined;
|
20
|
+
|
21
|
+
/***
|
22
|
+
* Indicates whether a endIndex property will be added to nodes.
|
23
|
+
* When the parser is used in a non-streaming fashion, endIndex is an integer
|
24
|
+
* indicating the position of the end of the node in the document.
|
25
|
+
* The default value is "false".
|
26
|
+
*/
|
27
|
+
withEndIndices?: boolean | undefined;
|
28
|
+
}
|
29
|
+
|
30
|
+
export interface DomElement {
|
31
|
+
attribs?: { [s: string]: string } | undefined;
|
32
|
+
children?: DomElement[] | undefined;
|
33
|
+
data?: any;
|
34
|
+
name?: string | undefined;
|
35
|
+
next?: DomElement | undefined;
|
36
|
+
parent?: DomElement | undefined;
|
37
|
+
prev?: DomElement | undefined;
|
38
|
+
type?: string | undefined;
|
39
|
+
}
|
40
|
+
|
41
|
+
export interface Element extends DomElement {
|
42
|
+
name: string;
|
43
|
+
}
|
44
|
+
|
45
|
+
export interface Node extends DomElement {
|
46
|
+
readonly firstChild: DomElement;
|
47
|
+
readonly lastChild: DomElement;
|
48
|
+
readonly nodeType: number;
|
49
|
+
}
|
50
|
+
|
51
|
+
export class DomHandler {
|
52
|
+
constructor(callback: (error: any, dom: DomElement[]) => any, options?: DomHandlerOptions);
|
53
|
+
|
54
|
+
onparserinit(parser: any): void;
|
55
|
+
|
56
|
+
/***
|
57
|
+
* Resets the handler back to starting state
|
58
|
+
*/
|
59
|
+
onreset(): void;
|
60
|
+
|
61
|
+
/***
|
62
|
+
* Signals the handler that parsing is done
|
63
|
+
*/
|
64
|
+
onend(): void;
|
65
|
+
onerror(error: Error): void;
|
66
|
+
onclosetag(): void;
|
67
|
+
onopentag(name: string, attribs: { [s: string]: string }): void;
|
68
|
+
ontext(data: string): void;
|
69
|
+
oncomment(data: string): void;
|
70
|
+
oncdatastart(): void;
|
71
|
+
oncommentend(): void;
|
72
|
+
onprocessinginstruction(name: string, data: string): void;
|
73
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
{
|
2
|
+
"name": "@types/domhandler",
|
3
|
+
"version": "2.4.5",
|
4
|
+
"description": "TypeScript definitions for domhandler",
|
5
|
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/domhandler",
|
6
|
+
"license": "MIT",
|
7
|
+
"contributors": [
|
8
|
+
{
|
9
|
+
"name": "Johan Davidsson",
|
10
|
+
"githubUsername": "johandavidson",
|
11
|
+
"url": "https://github.com/johandavidson"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"main": "",
|
15
|
+
"types": "index.d.ts",
|
16
|
+
"repository": {
|
17
|
+
"type": "git",
|
18
|
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
19
|
+
"directory": "types/domhandler"
|
20
|
+
},
|
21
|
+
"scripts": {},
|
22
|
+
"dependencies": {},
|
23
|
+
"typesPublisherContentHash": "60a0dea4ceaa8d3a2845f5b3a5f65cca135472055a4143248af267f9fd234f68",
|
24
|
+
"typeScriptVersion": "4.5"
|
25
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) Microsoft Corporation.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Installation
|
2
|
+
> `npm install --save @types/domutils`
|
3
|
+
|
4
|
+
# Summary
|
5
|
+
This package contains type definitions for domutils (https://github.com/FB55/domutils#readme).
|
6
|
+
|
7
|
+
# Details
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/domutils.
|
9
|
+
|
10
|
+
### Additional Details
|
11
|
+
* Last updated: Mon, 06 Nov 2023 22:41:05 GMT
|
12
|
+
* Dependencies: [@types/domhandler](https://npmjs.com/package/@types/domhandler)
|
13
|
+
|
14
|
+
# Credits
|
15
|
+
These definitions were written by [Johan Davidsson](https://github.com/johandavidson).
|
@@ -0,0 +1,124 @@
|
|
1
|
+
import { DomElement } from "domhandler";
|
2
|
+
/***
|
3
|
+
* Append an element after another
|
4
|
+
*
|
5
|
+
* @argument elem The element to append to
|
6
|
+
* @argument next The element be added
|
7
|
+
*/
|
8
|
+
export function append(elem: DomElement, next: DomElement): void;
|
9
|
+
/***
|
10
|
+
* Append a child to an element
|
11
|
+
*
|
12
|
+
* @argument elem The element to append to
|
13
|
+
* @argument child The element to be added as a child
|
14
|
+
*/
|
15
|
+
export function appendChild(elem: DomElement, child: DomElement): void;
|
16
|
+
/***
|
17
|
+
* Compare the position of one node against another node in any other document.
|
18
|
+
* The return value is a bitmask with the following values:
|
19
|
+
*
|
20
|
+
* document order:
|
21
|
+
* > There is an ordering, document order, defined on all the nodes in the
|
22
|
+
* > document corresponding to the order in which the first character of the
|
23
|
+
* > XML representation of each node occurs in the XML representation of the
|
24
|
+
* > document after expansion of general entities. Thus, the document element
|
25
|
+
* > node will be the first node. Element nodes occur before their children.
|
26
|
+
* > Thus, document order orders element nodes in order of the occurrence of
|
27
|
+
* > their start-tag in the XML (after expansion of entities). The attribute
|
28
|
+
* > nodes of an element occur after the element and before its children. The
|
29
|
+
* > relative order of attribute nodes is implementation-dependent./
|
30
|
+
*
|
31
|
+
* Source:
|
32
|
+
* http://www.w3.org/TR/DOM-Level-3-Core/glossary.html#dt-document-order
|
33
|
+
* @argument nodaA The first node to use in the comparison
|
34
|
+
* @argument nodeB The second node to use in the comparison
|
35
|
+
*
|
36
|
+
* @return A bitmask describing the input nodes' relative position.
|
37
|
+
*
|
38
|
+
* See http://dom.spec.whatwg.org/#dom-node-comparedocumentposition for
|
39
|
+
* a description of these values.
|
40
|
+
*/
|
41
|
+
export function compareDocumentPosition(nodeA: DomElement, nodeB: DomElement): number;
|
42
|
+
export function existsOne(test: any, elems: DomElement[]): boolean;
|
43
|
+
export function filter(test: any, element: DomElement, recurse: boolean, limit: number): DomElement[];
|
44
|
+
export function find(test: any, elems: DomElement[], recurse: boolean, limit: number): DomElement[];
|
45
|
+
export function findAll(test: any, rootElems: DomElement[]): DomElement[];
|
46
|
+
export function findOne(test: any, elems: DomElement[]): DomElement;
|
47
|
+
export function findOneChild(test: any, elems: DomElement[]): DomElement;
|
48
|
+
export function getAttributeValue(elem: DomElement, name: string): string;
|
49
|
+
export function getChildren(elem: DomElement): DomElement[];
|
50
|
+
/***
|
51
|
+
* Legacy
|
52
|
+
*/
|
53
|
+
export function getElementById(id: any, element: any, recurse?: any): any;
|
54
|
+
/***
|
55
|
+
* Legacy
|
56
|
+
*/
|
57
|
+
export function getElements(options: any, element: any, recurse?: any, limit?: any): any;
|
58
|
+
/***
|
59
|
+
* Legacy
|
60
|
+
*/
|
61
|
+
export function getElementsByTagName(name: any, element: any, recurse?: any, limit?: any): any;
|
62
|
+
/***
|
63
|
+
* Legacy
|
64
|
+
*/
|
65
|
+
export function getElementsByTagType(type: any, element: any, recurse?: any, limit?: any): any;
|
66
|
+
export function getInnerHTML(elem: DomElement, opts: any): string;
|
67
|
+
/***
|
68
|
+
* Returns the name property of an element
|
69
|
+
*
|
70
|
+
* @argument elem The element to get the name for
|
71
|
+
*/
|
72
|
+
export function getName(elem: DomElement): string;
|
73
|
+
/***
|
74
|
+
* Returns a string representing the array of DomElements
|
75
|
+
*
|
76
|
+
* @argument dom An array of DomElement that should be stringified
|
77
|
+
* @argument [opts] Optional options object
|
78
|
+
*/
|
79
|
+
export function getOuterHTML(
|
80
|
+
dom: DomElement[],
|
81
|
+
opts?: { decodeEntities?: boolean | undefined; xmlMode?: boolean | undefined },
|
82
|
+
): string;
|
83
|
+
export function getParent(elem: DomElement): DomElement;
|
84
|
+
export function getSiblings(elem: DomElement): DomElement[];
|
85
|
+
export function getText(elem: DomElement): string;
|
86
|
+
export function hasAttrib(elem: DomElement, name: string): boolean;
|
87
|
+
export function isTag(elem: DomElement): boolean;
|
88
|
+
/***
|
89
|
+
* Prepend an element before another
|
90
|
+
*
|
91
|
+
* @argument elem The element to append to
|
92
|
+
* @argument prev The element be added
|
93
|
+
*/
|
94
|
+
export function prepend(elem: DomElement, prev: DomElement): void;
|
95
|
+
/***
|
96
|
+
* Remove an element from the dom
|
97
|
+
*
|
98
|
+
* @argument elem The element to be removed
|
99
|
+
*/
|
100
|
+
export function removeElement(elem: DomElement): void;
|
101
|
+
/***
|
102
|
+
* Given an array of nodes, remove any member that is contained by another.
|
103
|
+
*/
|
104
|
+
export function removeSubsets(nodes: DomElement[]): DomElement[];
|
105
|
+
/***
|
106
|
+
* Replace an element in the dom
|
107
|
+
*
|
108
|
+
* @argument elem The element to be replaced
|
109
|
+
* @argument replacement The element to be added
|
110
|
+
*/
|
111
|
+
export function replaceElement(elem: DomElement, replacement: DomElement): void;
|
112
|
+
/***
|
113
|
+
* Legacy
|
114
|
+
*/
|
115
|
+
export function testElement(options: any, element: any): any;
|
116
|
+
/***
|
117
|
+
* Sort an array of nodes based on their relative position in the document and
|
118
|
+
* remove any duplicate nodes. If the array contains nodes that do not belong
|
119
|
+
* to the same document, sort order is unspecified.
|
120
|
+
*
|
121
|
+
* @argument nodes Array of DOM nodes
|
122
|
+
* @returns collection of unique nodes, sorted in document order
|
123
|
+
*/
|
124
|
+
export function uniqueSort(nodes: DomElement[]): DomElement[];
|
@@ -0,0 +1,27 @@
|
|
1
|
+
{
|
2
|
+
"name": "@types/domutils",
|
3
|
+
"version": "1.7.8",
|
4
|
+
"description": "TypeScript definitions for domutils",
|
5
|
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/domutils",
|
6
|
+
"license": "MIT",
|
7
|
+
"contributors": [
|
8
|
+
{
|
9
|
+
"name": "Johan Davidsson",
|
10
|
+
"githubUsername": "johandavidson",
|
11
|
+
"url": "https://github.com/johandavidson"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"main": "",
|
15
|
+
"types": "index.d.ts",
|
16
|
+
"repository": {
|
17
|
+
"type": "git",
|
18
|
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
19
|
+
"directory": "types/domutils"
|
20
|
+
},
|
21
|
+
"scripts": {},
|
22
|
+
"dependencies": {
|
23
|
+
"@types/domhandler": "^2.4.0"
|
24
|
+
},
|
25
|
+
"typesPublisherContentHash": "47b4f35bd1ab60f1f9aa1d01b90bbd9df04900a53578910effa2218c147ff8aa",
|
26
|
+
"typeScriptVersion": "4.5"
|
27
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) Microsoft Corporation.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Installation
|
2
|
+
> `npm install --save @types/htmlparser2`
|
3
|
+
|
4
|
+
# Summary
|
5
|
+
This package contains type definitions for htmlparser2 (https://github.com/fb55/htmlparser2/).
|
6
|
+
|
7
|
+
# Details
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/htmlparser2.
|
9
|
+
|
10
|
+
### Additional Details
|
11
|
+
* Last updated: Tue, 07 Nov 2023 03:09:37 GMT
|
12
|
+
* Dependencies: [@types/domhandler](https://npmjs.com/package/@types/domhandler), [@types/domutils](https://npmjs.com/package/@types/domutils), [@types/node](https://npmjs.com/package/@types/node), [domhandler](https://npmjs.com/package/domhandler)
|
13
|
+
|
14
|
+
# Credits
|
15
|
+
These definitions were written by [James Roland Cabresos](https://github.com/staticfunction), [Linus Unnebäck](https://github.com/LinusU), [Johan Davidsson](https://github.com/johandavidson), and [GP](https://github.com/paambaati).
|
@@ -0,0 +1,120 @@
|
|
1
|
+
/// <reference types="node"/>
|
2
|
+
/// <reference types="domhandler"/>
|
3
|
+
/// <reference types="domutils"/>
|
4
|
+
|
5
|
+
import { DomHandler } from "domhandler";
|
6
|
+
import * as DomUtils from "domutils";
|
7
|
+
import { Writable } from "stream";
|
8
|
+
export { DomElement, DomHandler, DomHandlerOptions, Element, Node } from "domhandler";
|
9
|
+
|
10
|
+
export interface ParserOptions {
|
11
|
+
/***
|
12
|
+
* Indicates whether special tags (<script> and <style>) should get special treatment
|
13
|
+
* and if "empty" tags (eg. <br>) can have children. If false, the content of special tags
|
14
|
+
* will be text only. For feeds and other XML content (documents that don't consist of HTML),
|
15
|
+
* set this to true. Default: false.
|
16
|
+
*/
|
17
|
+
xmlMode?: boolean | undefined;
|
18
|
+
|
19
|
+
/***
|
20
|
+
* If set to true, entities within the document will be decoded. Defaults to false.
|
21
|
+
*/
|
22
|
+
decodeEntities?: boolean | undefined;
|
23
|
+
|
24
|
+
/***
|
25
|
+
* If set to true, all tags will be lowercased. If xmlMode is disabled, this defaults to true.
|
26
|
+
*/
|
27
|
+
lowerCaseTags?: boolean | undefined;
|
28
|
+
|
29
|
+
/***
|
30
|
+
* If set to true, all attribute names will be lowercased. This has noticeable impact on speed, so it defaults to false.
|
31
|
+
*/
|
32
|
+
lowerCaseAttributeNames?: boolean | undefined;
|
33
|
+
|
34
|
+
/***
|
35
|
+
* If set to true, CDATA sections will be recognized as text even if the xmlMode option is not enabled.
|
36
|
+
* NOTE: If xmlMode is set to true then CDATA sections will always be recognized as text.
|
37
|
+
*/
|
38
|
+
recognizeCDATA?: boolean | undefined;
|
39
|
+
|
40
|
+
/***
|
41
|
+
* If set to true, self-closing tags will trigger the onclosetag event even if xmlMode is not set to true.
|
42
|
+
* NOTE: If xmlMode is set to true then self-closing tags will always be recognized.
|
43
|
+
*/
|
44
|
+
recognizeSelfClosing?: boolean | undefined;
|
45
|
+
}
|
46
|
+
/**
|
47
|
+
* @deprecated
|
48
|
+
*/
|
49
|
+
export type Options = ParserOptions;
|
50
|
+
|
51
|
+
export declare class WritableStream extends Writable {
|
52
|
+
constructor(handler: DomHandler, options?: ParserOptions);
|
53
|
+
}
|
54
|
+
|
55
|
+
export declare class Parser {
|
56
|
+
constructor(handler: Partial<DomHandler>, options?: ParserOptions);
|
57
|
+
|
58
|
+
/***
|
59
|
+
* Parses a chunk of data and calls the corresponding callbacks.
|
60
|
+
* @param input
|
61
|
+
*/
|
62
|
+
write(input: string): void;
|
63
|
+
|
64
|
+
/***
|
65
|
+
* alias for backwards compat
|
66
|
+
*/
|
67
|
+
parseChunk(chunk: string): void;
|
68
|
+
|
69
|
+
/***
|
70
|
+
* Parses the end of the buffer and clears the stack, calls onend.
|
71
|
+
*/
|
72
|
+
end(): void;
|
73
|
+
|
74
|
+
/***
|
75
|
+
* Parses the end of the buffer and clears the stack, calls onend.
|
76
|
+
*/
|
77
|
+
end(chunk: string): void;
|
78
|
+
|
79
|
+
/***
|
80
|
+
* alias for backwards compat
|
81
|
+
*/
|
82
|
+
done(): void;
|
83
|
+
|
84
|
+
/***
|
85
|
+
* Pauses the parser
|
86
|
+
*/
|
87
|
+
pause(): void;
|
88
|
+
|
89
|
+
/***
|
90
|
+
* Resumes the parser
|
91
|
+
*/
|
92
|
+
resume(): void;
|
93
|
+
|
94
|
+
/***
|
95
|
+
* Resets the parser, parses the data & calls end.
|
96
|
+
* @param input
|
97
|
+
*/
|
98
|
+
parseComplete(input: string): void;
|
99
|
+
|
100
|
+
/***
|
101
|
+
* Resets buffer & stack, calls onreset.
|
102
|
+
*/
|
103
|
+
reset(): void;
|
104
|
+
|
105
|
+
ontext(data: any): void;
|
106
|
+
onopentagname(name: string): void;
|
107
|
+
onopentagend(): void;
|
108
|
+
onclosetag(name: string): void;
|
109
|
+
onselfclosingtag(): void;
|
110
|
+
onattribname(name: string): void;
|
111
|
+
onattribend(): void;
|
112
|
+
ondeclaration(): void;
|
113
|
+
onprocessinginstruction(value: string): void;
|
114
|
+
oncomment(value: string): void;
|
115
|
+
oncdata(value: string): void;
|
116
|
+
onerror(err: Error): void;
|
117
|
+
onend(): void;
|
118
|
+
}
|
119
|
+
|
120
|
+
export { DomUtils };
|
@@ -0,0 +1,45 @@
|
|
1
|
+
{
|
2
|
+
"name": "@types/htmlparser2",
|
3
|
+
"version": "3.10.7",
|
4
|
+
"description": "TypeScript definitions for htmlparser2",
|
5
|
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/htmlparser2",
|
6
|
+
"license": "MIT",
|
7
|
+
"contributors": [
|
8
|
+
{
|
9
|
+
"name": "James Roland Cabresos",
|
10
|
+
"githubUsername": "staticfunction",
|
11
|
+
"url": "https://github.com/staticfunction"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"name": "Linus Unnebäck",
|
15
|
+
"githubUsername": "LinusU",
|
16
|
+
"url": "https://github.com/LinusU"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"name": "Johan Davidsson",
|
20
|
+
"githubUsername": "johandavidson",
|
21
|
+
"url": "https://github.com/johandavidson"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"name": "GP",
|
25
|
+
"githubUsername": "paambaati",
|
26
|
+
"url": "https://github.com/paambaati"
|
27
|
+
}
|
28
|
+
],
|
29
|
+
"main": "",
|
30
|
+
"types": "index.d.ts",
|
31
|
+
"repository": {
|
32
|
+
"type": "git",
|
33
|
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
34
|
+
"directory": "types/htmlparser2"
|
35
|
+
},
|
36
|
+
"scripts": {},
|
37
|
+
"dependencies": {
|
38
|
+
"@types/domhandler": "^2.4.3",
|
39
|
+
"@types/domutils": "*",
|
40
|
+
"@types/node": "*",
|
41
|
+
"domhandler": "^2.4.0"
|
42
|
+
},
|
43
|
+
"typesPublisherContentHash": "7570ab2cb2f14acf512a1ef3bba9d03939e5d09f4c1e62cc1ac7072be9276c51",
|
44
|
+
"typeScriptVersion": "4.5"
|
45
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) Microsoft Corporation.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Installation
|
2
|
+
> `npm install --save @types/node`
|
3
|
+
|
4
|
+
# Summary
|
5
|
+
This package contains type definitions for node (https://nodejs.org/).
|
6
|
+
|
7
|
+
# Details
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
9
|
+
|
10
|
+
### Additional Details
|
11
|
+
* Last updated: Tue, 14 May 2024 06:09:35 GMT
|
12
|
+
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
13
|
+
|
14
|
+
# Credits
|
15
|
+
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), [Matteo Collina](https://github.com/mcollina), and [Dmitry Semigradsky](https://github.com/Semigradsky).
|