Home / npm packages / web-vitals

web-vitals source code

Every file of web-vitals@6.2.2 as published on npm: 131 files, 459 KB. Search them by exact text or regex, in milliseconds.

It uses: none of the APIs we check for.

What web-vitals uses

APIIn web-vitals
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
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
README.md58 KB
dist/modules/attribution/onINP.js20 KB
src/attribution/onINP.ts20 KB
dist/web-vitals.attribution.umd.cjs16 KB
dist/web-vitals.attribution.iife.js16 KB
dist/web-vitals.attribution.js16 KB
LICENSE11 KB
dist/modules/onLCP.js10 KB
src/onLCP.ts10 KB
dist/web-vitals.umd.cjs9.2 KB
dist/web-vitals.iife.js9.0 KB
dist/web-vitals.js9.0 KB
src/types/inp.ts7.9 KB
src/onINP.ts7.7 KB
dist/modules/types/inp.d.ts7.6 KB
dist/modules/attribution/onLCP.js7.3 KB
src/attribution/onLCP.ts7.1 KB
dist/modules/onINP.js7.1 KB
src/lib/InteractionManager.ts6.4 KB
dist/modules/lib/InteractionManager.js6.3 KB
src/onCLS.ts6.1 KB
src/types/base.ts6.1 KB
src/types.ts5.7 KB
src/onFCP.ts5.6 KB
dist/modules/onFCP.js5.6 KB
dist/modules/types/base.d.ts5.6 KB
dist/modules/onCLS.js5.5 KB
package.json5.4 KB
dist/modules/lib/getVisibilityWatcher.js5.0 KB
src/onTTFB.ts4.9 KB

Questions

How many files are in web-vitals?

Version 6.2.2 of web-vitals publishes 131 files of source, 459 KB in all, not counting images, fonts and source maps.

Does web-vitals use eval?

No: web-vitals doesn't call eval() anywhere in its published files.

Does web-vitals start other programs?

No: web-vitals doesn't use child_process anywhere in its published files.

Does web-vitals run an install script?

No: web-vitals 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