</>PackageGraphPackageGraph

moment

npmv2.30.1TypeScript

Parse, validate, manipulate, and display dates

Adopt with care

moment is usable, with caveats. Last published 987 days ago.

  • AAdoption: grade A, Excellent.

    31.5M downloads per week and 2 known dependents.

  • DMaintenance: grade D, Poor — a real concern.

    Last published 987 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 4.1 MB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 5 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding moment to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

4.1 MB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
node *
Module format
CommonJS only
TypeScript
Types included
Install scripts
None

moment vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
momentthis page31.5M2MIT2 years ago
dayjs48.7M1MIT1 day ago
get-east-asian-width69.3M1MIT1 day ago
yn30.3M1MIT1 day ago
ip-address03MIT1 day ago
y18n126.1M1ISC1 day ago

Dependencies

Declared by moment v2.30.1. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (34)

@types/node 17.0.21benchmark latestcoveralls latestcross-env ^6.0.3es6-promise latesteslint latestgrunt latestgrunt-benchmark latestgrunt-cli latestgrunt-contrib-clean latestgrunt-contrib-concat latestgrunt-contrib-copy latestgrunt-contrib-uglify latestgrunt-contrib-watch latestgrunt-env latestgrunt-exec latestgrunt-karma latestgrunt-nuget latestgrunt-string-replace latestkarma latestkarma-chrome-launcher latestkarma-firefox-launcher latestkarma-qunit latestkarma-sauce-launcher 4.1.4load-grunt-tasks latestlodash >=4.17.19node-qunit latestnyc latestprettier latestqunit ^2.10.0rollup 2.17.1typescript ^1.8.10typescript3 npm:typescript@^3.1.6uglify-js latest

Used by

Popular packages that depend on moment.

Relationship graph

Dependencies (left) and dependents (right) of moment.

dayjsmongoosemoment
moment dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 28 days apart.

Recent versions of moment
VersionPublishedSizeLicense
2.30.1latest2 years ago4.1 MBMIT
2.30.02 years ago4.1 MBMIT
2.29.44 years ago4.0 MBMIT
2.29.34 years ago4.0 MBMIT
2.29.24 years ago4.0 MBMIT
2.29.16 years ago4.0 MBMIT
2.29.06 years ago4.0 MBMIT
2.28.06 years ago3.9 MBMIT
2.27.06 years ago3.9 MBMIT
2.26.06 years ago3.9 MBMIT
2.25.36 years ago3.9 MBMIT
2.25.26 years ago3.9 MBMIT
2.25.16 years ago3.3 MBMIT
2.25.06 years ago3.3 MBMIT
2.24.07 years ago2.7 MBMIT

Overview

moment is an npm package that parse, validate, manipulate, and display dates. It is extremely widely used, with about 31.5M downloads per week and 2 known dependents in the graph. The latest version is 2.30.1, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need parse, validate, manipulate, and display dates and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (31.5M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (34 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use moment?

moment is usable, with caveats. Last published 987 days ago.

How do I install moment?

Run `npm install moment` to add moment to your npm project.

What license is moment released under?

moment is distributed under the MIT license.

How popular is moment?

moment has approximately 31,524,778 downloads per week and 2 known dependent packages.

Is moment still maintained?

The most recent release of moment (v2.30.1) was published 2 years ago.

Does moment run install scripts?

No. moment does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.