Home / npm packages / whatwg-url

whatwg-url source code

Every file of whatwg-url@17.2.0 as published on npm: 19 files, 120 KB. Search them by exact text or regex, in milliseconds.

It uses: eval().

What whatwg-url uses

APIIn whatwg-url
eval()
runs a string as JavaScript
Yes: 1 file
e.g. lib/utils.js
See the lines
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
NoWho does
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
lib/url-state-machine.js33 KB
lib/URLSearchParams.js15 KB
lib/utils.js13 KB
lib/URL.js12 KB
lib/url-string-validator.js11 KB
README.md8.0 KB
lib/url-miscellaneous.js5.6 KB
lib/percent-encoding.js5.3 KB
lib/URL-impl.js5.1 KB
lib/URLSearchParams-impl.js3.0 KB
lib/urlencoded.js2.3 KB
index.js1.5 KB
package.json1.5 KB
lib/Function.js1.2 KB
LICENSE.txt1.1 KB
lib/infra.js731 B
lib/VoidFunction.js728 B
lib/encoding.js328 B
webidl2js-wrapper.js170 B

Questions

How many files are in whatwg-url?

Version 17.2.0 of whatwg-url publishes 19 files of source, 120 KB in all, not counting images, fonts and source maps.

Does whatwg-url use eval?

Yes: whatwg-url calls eval() in 1 of its files.

Does whatwg-url start other programs?

No: whatwg-url doesn't use child_process anywhere in its published files.

Does whatwg-url run an install script?

No: whatwg-url 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