Home / npm packages / lodash

lodash source code

Every file of lodash@4.18.1 as published on npm: 1,051 files, 1.4 MB. Search them by exact text or regex, in milliseconds.

It uses: new Function().

What lodash uses

APIIn lodash
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
Yes: 6 files
e.g. _root.js
See the lines
child_process
starts other programs
NoWho does
process.env
reads environment variables
NoWho does
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
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
lodash.js546 KB
core.js116 KB
lodash.min.js73 KB
fp/_baseConvert.js16 KB
core.min.js13 KB
template.js11 KB
fp/_mapping.js10.0 KB
wrapperLodash.js6.9 KB
debounce.js6.1 KB
_baseClone.js5.6 KB
_equalByTag.js3.7 KB
_createWrap.js3.7 KB
_deburrLetter.js3.4 KB
truncate.js3.4 KB
_createHybrid.js3.3 KB
_mergeData.js3.1 KB
_baseMergeDeep.js3.1 KB
_unicodeWords.js3.1 KB
_baseIsEqualDeep.js3.0 KB
_equalObjects.js3.0 KB
throttle.js2.7 KB
_equalArrays.js2.7 KB
random.js2.6 KB
array.js2.5 KB
transform.js2.3 KB
_baseIntersection.js2.3 KB
_initCloneByTag.js2.3 KB
_baseSortedIndexBy.js2.3 KB
_createFlow.js2.2 KB
mixin.js2.2 KB

Questions

How many files are in lodash?

Version 4.18.1 of lodash publishes 1,051 files of source, 1.4 MB in all, not counting images, fonts and source maps.

Does lodash use eval?

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

Does lodash start other programs?

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

Does lodash run an install script?

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