Home / npm packages / mongodb

mongodb source code

Every file of mongodb@7.7.0 as published on npm: 270 files, 2.8 MB. Search them by exact text or regex, in milliseconds.

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

What mongodb uses

APIIn mongodb
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/client-side-encryption/mongocryptd_manager.js
See the lines
process.env
reads environment variables
Yes: 14 files
e.g. lib/cmap/auth/aws_temporary_credentials.js
See the lines
the fs module
reads and writes files
Yes: 11 files
e.g. lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.js
See the lines
http / https
makes or serves HTTP requests with Node's own modules
Yes: 2 files
e.g. lib/utils.js
See the lines
fetch()
makes HTTP requests
Yes: 2 files
e.g. src/mongo_types.ts
See the lines
XMLHttpRequest
makes HTTP requests the old browser way
NoWho does
crypto
hashes, encrypts or makes random numbers
Yes: 4 files
e.g. lib/cmap/auth/aws4.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
mongodb.d.ts356 KB
src/mongo_client.ts50 KB
lib/sessions.js47 KB
src/sessions.ts46 KB
src/collection.ts46 KB
lib/connection_string.js44 KB
lib/error.js44 KB
src/error.ts42 KB
src/utils.ts42 KB
lib/utils.js41 KB
src/connection_string.ts41 KB
src/cursor/abstract_cursor.ts40 KB
src/bulk/common.ts40 KB
src/change_stream.ts39 KB
src/client-side-encryption/client_encryption.ts38 KB
src/mongo_logger.ts36 KB
lib/cursor/abstract_cursor.js36 KB
src/sdam/topology.ts35 KB
lib/bulk/common.js34 KB
lib/collection.js34 KB
lib/sdam/topology.js32 KB
src/cmap/connection.ts31 KB
lib/mongo_logger.js29 KB
lib/mongo_client.js29 KB
lib/client-side-encryption/client_encryption.js27 KB
lib/cmap/connection.js27 KB
src/cmap/connection_pool.ts26 KB
src/cmap/commands.ts26 KB
lib/index.js26 KB
lib/cmap/commands.js24 KB

Questions

How many files are in mongodb?

Version 7.7.0 of mongodb publishes 270 files of source, 2.8 MB in all, not counting images, fonts and source maps.

Does mongodb use eval?

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

Does mongodb start other programs?

Yes: mongodb uses child_process in 3 of its files.

Does mongodb run an install script?

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