Home / npm packages / htmlparser2

htmlparser2 source code

Every file of htmlparser2@12.0.0 as published on npm: 18 files, 173 KB. Search them by exact text or regex, in milliseconds.

It uses: fetch().

What htmlparser2 uses

APIIn htmlparser2
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
NoWho does
child_process
starts other programs
NoWho does
process.env
reads environment variables
NoWho does
the fs module
reads and writes files
NoWho does
http / https
makes or serves HTTP requests with Node's own modules
NoWho does
fetch()
makes HTTP requests
Yes: 3 files
e.g. dist/WebWritableStream.js
See the lines
XMLHttpRequest
makes HTTP requests the old browser way
NoWho does
crypto
hashes, encrypts or makes random numbers
NoWho does
WebAssembly
loads WebAssembly code
NoWho does
document.cookie
reads or writes browser cookies
NoWho does
install scripts
runs a script when it's installed
NoWho does

Exact matches in the published files, so a mention in a comment counts too: open the lines to check.

Largest files

FileSize
src/Tokenizer.ts41 KB
dist/Tokenizer.js41 KB
src/Parser.ts25 KB
dist/Parser.js21 KB
README.md13 KB
dist/Parser.d.ts8.8 KB
dist/Tokenizer.d.ts7.4 KB
src/index.ts2.5 KB
package.json2.4 KB
dist/index.js1.9 KB
dist/index.d.ts1.8 KB
src/WebWritableStream.ts1.6 KB
dist/WebWritableStream.js1.5 KB
src/WritableStream.ts1.3 KB
LICENSE1.1 KB
dist/WritableStream.js1.1 KB
dist/WebWritableStream.d.ts808 B
dist/WritableStream.d.ts553 B

Questions

How many files are in htmlparser2?

Version 12.0.0 of htmlparser2 publishes 18 files of source, 173 KB in all, not counting images, fonts and source maps.

Does htmlparser2 use eval?

No: htmlparser2 doesn't call eval() anywhere in its published files.

Does htmlparser2 start other programs?

No: htmlparser2 doesn't use child_process anywhere in its published files.

Does htmlparser2 run an install script?

No: htmlparser2 has no preinstall, install or postinstall script in its package.json.

npm packages that use…

Every package we've indexed →

Search your own code like this

The same engine answers over your documents and repositories: exact text and regex, every match counted, from your code or your AI agent.

See StackGrep Engine