Home / npm packages / mongoose

mongoose source code

Every file of mongoose@9.10.4 as published on npm: 301 files, 2.2 MB. Search them by exact text or regex, in milliseconds.

It uses: process.env, fetch().

What mongoose uses

APIIn mongoose
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/helpers/printJestWarning.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
NoWho does
fetch()
makes HTTP requests
Yes: 1 file
e.g. lib/helpers/cursor/eachAsync.js
See the lines
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
lib/model.js207 KB
lib/query.js195 KB
lib/document.js184 KB
types/expressions.d.ts117 KB
lib/schema.js111 KB
types/models.d.ts68 KB
lib/connection.js61 KB
lib/schemaType.js60 KB
types/index.d.ts58 KB
lib/mongoose.js56 KB
lib/aggregate.js39 KB
types/query.d.ts38 KB
lib/helpers/populate/getModelsMapForPopulate.js31 KB
lib/types/array/methods/index.js30 KB
types/schematypes.d.ts27 KB
lib/utils.js23 KB
lib/schema/string.js21 KB
lib/helpers/query/castUpdate.js20 KB
lib/schema/array.js20 KB
lib/schema/documentArray.js20 KB
lib/cursor/queryCursor.js19 KB
types/document.d.ts16 KB
lib/drivers/node-mongodb-native/connection.js16 KB
types/inferschematype.d.ts15 KB
lib/cast.js15 KB
lib/cursor/aggregationCursor.js14 KB
README.md14 KB
lib/types/documentArray/methods/index.js14 KB
lib/schema/number.js13 KB
lib/drivers/node-mongodb-native/collection.js13 KB

Questions

How many files are in mongoose?

Version 9.10.4 of mongoose publishes 301 files of source, 2.2 MB in all, not counting images, fonts and source maps.

Does mongoose use eval?

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

Does mongoose start other programs?

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

Does mongoose run an install script?

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