Home / npm packages / karma

karma source code

Every file of karma@6.4.4 as published on npm: 89 files, 529 KB. Search them by exact text or regex, in milliseconds.

It uses: child_process, process.env, the fs module, http / https, crypto.

What karma uses

APIIn karma
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
Yes: 3 files
e.g. lib/init.js
See the lines
process.env
reads environment variables
Yes: 3 files
e.g. lib/completion.js
See the lines
the fs module
reads and writes files
Yes: 3 files
e.g. scripts/client.js
See the lines
http / https
makes or serves HTTP requests with Node's own modules
Yes: 4 files
e.g. lib/middleware/proxy.js
See the lines
fetch()
makes HTTP requests
NoWho does
XMLHttpRequest
makes HTTP requests the old browser way
NoWho does
crypto
hashes, encrypts or makes random numbers
Yes: 1 file
e.g. lib/utils/crypto-utils.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
CHANGELOG.md140 KB
static/karma.js76 KB
static/context.js67 KB
package.json22 KB
lib/config.js19 KB
lib/server.js16 KB
lib/cli.js12 KB
lib/middleware/karma.js10 KB
lib/browser.js8.7 KB
lib/init.js7.9 KB
lib/file-list.js6.9 KB
README.md6.7 KB
lib/reporter.js5.6 KB
lib/launcher.js5.5 KB
lib/launchers/process.js5.5 KB
context/karma.js4.9 KB
lib/reporters/base.js4.7 KB
lib/middleware/proxy.js4.3 KB
lib/helper.js4.3 KB
lib/middleware/runner.js4.0 KB
lib/web-server.js3.6 KB
lib/logger.js3.5 KB
lib/completion.js3.5 KB
lib/preprocessor.js3.4 KB
lib/middleware/common.js3.4 KB
lib/runner.js3.3 KB
lib/init/state_machine.js3.3 KB
lib/launchers/base.js3.3 KB
lib/plugin.js3.3 KB
static/client_with_context.html3.2 KB

Questions

How many files are in karma?

Version 6.4.4 of karma publishes 89 files of source, 529 KB in all, not counting images, fonts and source maps.

Does karma use eval?

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

Does karma start other programs?

Yes: karma uses child_process in 3 of its files.

Does karma run an install script?

No: karma 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