Home / npm packages / moment

moment source code

Every file of moment@2.31.0 as published on npm: 542 files, 4.0 MB. Search them by exact text or regex, in milliseconds.

It uses: none of the APIs we check for.

What moment uses

APIIn moment
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
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
min/moment-with-locales.js653 KB
min/locales.js470 KB
min/moment-with-locales.min.js391 KB
min/locales.min.js330 KB
moment.js183 KB
dist/moment.js163 KB
min/moment.min.js61 KB
CHANGELOG.md49 KB
ts3.1-typings/moment.d.ts24 KB
moment.d.ts24 KB
src/lib/units/day-of-week.js14 KB
src/lib/units/month.js10 KB
locale/ru.js9.6 KB
src/lib/locale/locales.js8.5 KB
dist/locale/ru.js8.4 KB
src/locale/ru.js8.4 KB
src/lib/units/era.js8.1 KB
src/lib/create/from-string.js8.0 KB
locale/cs.js7.8 KB
locale/mr.js7.7 KB
src/lib/create/from-array.js7.5 KB
locale/hi.js7.4 KB
src/lib/units/offset.js7.4 KB
locale/sl.js7.1 KB
locale/uk.js7.0 KB
dist/locale/cs.js6.8 KB
src/locale/cs.js6.8 KB
dist/locale/mr.js6.6 KB
src/locale/mr.js6.6 KB
locale/ps.js6.5 KB

Questions

How many files are in moment?

Version 2.31.0 of moment publishes 542 files of source, 4.0 MB in all, not counting images, fonts and source maps.

Does moment use eval?

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

Does moment start other programs?

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

Does moment run an install script?

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