Home / npm packages / istanbul-lib-instrument

istanbul-lib-instrument source code

Every file of istanbul-lib-instrument@6.0.3 as published on npm: 10 files, 72 KB. Search them by exact text or regex, in milliseconds.

It uses: new Function(), crypto.

What istanbul-lib-instrument uses

APIIn istanbul-lib-instrument
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
Yes: 1 file
e.g. src/visitor.js
See the lines
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
Yes: 2 files
e.g. src/constants.js
See the lines
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/visitor.js29 KB
CHANGELOG.md26 KB
src/instrumenter.js7.1 KB
src/source-coverage.js3.6 KB
src/read-coverage.js2.2 KB
LICENSE1.5 KB
package.json1.2 KB
README.md946 B
src/index.js594 B
src/constants.js386 B

Questions

How many files are in istanbul-lib-instrument?

Version 6.0.3 of istanbul-lib-instrument publishes 10 files of source, 72 KB in all, not counting images, fonts and source maps.

Does istanbul-lib-instrument use eval?

No: istanbul-lib-instrument doesn't call eval() anywhere in its published files.

Does istanbul-lib-instrument start other programs?

No: istanbul-lib-instrument doesn't use child_process anywhere in its published files.

Does istanbul-lib-instrument run an install script?

No: istanbul-lib-instrument 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