moment
npmv2.30.1TypeScriptParse, 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.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
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.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| momentthis page | 31.5M | 2 | MIT | 2 years ago |
| dayjs | 48.7M | 1 | MIT | 1 day ago |
| get-east-asian-width | 69.3M | 1 | MIT | 1 day ago |
| yn | 30.3M | 1 | MIT | 1 day ago |
| ip-address | 0 | 3 | MIT | 1 day ago |
| y18n | 126.1M | 1 | ISC | 1 day ago |
Dependencies
Declared by moment v2.30.1. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (34)
Used by
Popular packages that depend on moment.
Relationship graph
Dependencies (left) and dependents (right) of moment.
Frequently installed together
An AST-based pattern checker for JavaScript.
RFC9562 UUIDs
A family of specs for interoperable TypeScript
Fast, unopinionated, minimalist web framework
The fast, flexible & elegant library for parsing and manipulating HTML and XML.
{G,S}et object values using MongoDB-like path notation
Expressive query building for MongoDB
Official client encryption module for the MongoDB Node.js driver
Next-generation take on pre/post function hooks
The official MongoDB driver for Node.js
the most correct and second fastest glob implementation in JavaScript
Tiny millisecond conversion utility
Release history
No releases in the last two years, typically about 28 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 2.30.1latest | 2 years ago | 4.1 MB | MIT |
| 2.30.0 | 2 years ago | 4.1 MB | MIT |
| 2.29.4 | 4 years ago | 4.0 MB | MIT |
| 2.29.3 | 4 years ago | 4.0 MB | MIT |
| 2.29.2 | 4 years ago | 4.0 MB | MIT |
| 2.29.1 | 6 years ago | 4.0 MB | MIT |
| 2.29.0 | 6 years ago | 4.0 MB | MIT |
| 2.28.0 | 6 years ago | 3.9 MB | MIT |
| 2.27.0 | 6 years ago | 3.9 MB | MIT |
| 2.26.0 | 6 years ago | 3.9 MB | MIT |
| 2.25.3 | 6 years ago | 3.9 MB | MIT |
| 2.25.2 | 6 years ago | 3.9 MB | MIT |
| 2.25.1 | 6 years ago | 3.3 MB | MIT |
| 2.25.0 | 6 years ago | 3.3 MB | MIT |
| 2.24.0 | 7 years ago | 2.7 MB | MIT |
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
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.