Home / npm packages / koa

koa source code

Every file of koa@3.2.1 as published on npm: 11 files, 65 KB. Search them by exact text or regex, in milliseconds.

It uses: process.env, http / https.

What koa uses

APIIn koa
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
Yes: 1 file
e.g. lib/application.js
See the lines
the fs module
reads and writes files
NoWho does
http / https
makes or serves HTTP requests with Node's own modules
Yes: 1 file
e.g. lib/application.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
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.md17 KB
lib/request.js15 KB
lib/response.js14 KB
lib/application.js9.0 KB
lib/context.js5.5 KB
package.json1.7 KB
LICENSE1.1 KB
lib/search-params.js888 B
lib/is-stream.js539 B
lib/only.js195 B
dist/koa.mjs102 B

Questions

How many files are in koa?

Version 3.2.1 of koa publishes 11 files of source, 65 KB in all, not counting images, fonts and source maps.

Does koa use eval?

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

Does koa start other programs?

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

Does koa run an install script?

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