Home / npm packages / mime

mime source code

Every file of mime@4.1.0 as published on npm: 22 files, 161 KB. Search them by exact text or regex, in milliseconds.

It uses: the fs module.

What mime uses

APIIn mime
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
Yes: 2 files
e.g. dist/src/mime_cli.js
See the lines
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
dist/types/other.d.ts38 KB
dist/types/other.js32 KB
types/other.ts30 KB
dist/types/standard.d.ts16 KB
dist/types/standard.js13 KB
types/standard.ts12 KB
README.md4.2 KB
dist/src/Mime.js4.1 KB
src/Mime.ts3.9 KB
src/mime_cli.ts2.2 KB
dist/src/mime_cli.js2.1 KB
package.json1.9 KB
LICENSE1.1 KB
dist/src/Mime.d.ts467 B
src/index.ts233 B
dist/src/index.js231 B
src/index_lite.ts177 B
dist/src/index_lite.js175 B
dist/src/index_lite.d.ts130 B
dist/src/index.d.ts130 B
bin/cli.js116 B
dist/src/mime_cli.d.ts63 B

Questions

How many files are in mime?

Version 4.1.0 of mime publishes 22 files of source, 161 KB in all, not counting images, fonts and source maps.

Does mime use eval?

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

Does mime start other programs?

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

Does mime run an install script?

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