moment
npmv2.30.1TypeScriptParse, validate, manipulate, and display dates
Overview
moment is an npm package that parse, validate, manipulate, and display dates. It is extremely widely used, with about 32.7M downloads per week. 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 (32.7M 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.
Relationship graph
Dependencies (left) and dependents (right) of moment.
Dependencies
Dev (34)
Used by
Popular packages that depend on moment.
Alternatives to moment
2KB immutable date time library alternative to Moment.js with the same modern API
A querystring parser that supports nesting and arrays, with a depth limit
Functions for dealing with a PostgreSQL connection string
Parse CLI arguments.
🛡️ Faster SQL escape and format for JavaScript (Node.js, Bun, and Deno).
Parses set-cookie headers into objects
Get the command from a shebang
A modern CSS parser and stringifier with TypeScript support
Utility to parse a string bytes to bytes and vice-versa
Frequently installed together
An AST-based pattern checker for JavaScript.
Tiny millisecond conversion utility
RFC9562 UUIDs
Prettier is an opinionated code formatter
Fast, unopinionated, minimalist web framework
Delightful JavaScript Testing.
Expressive query building for MongoDB
The official MongoDB driver for Node.js
the most correct and second fastest glob implementation in JavaScript
Official client encryption module for the MongoDB Node.js driver
TypeScript definitions for node
A family of specs for interoperable TypeScript
Version history
| Version | Published | License |
|---|---|---|
| 2.30.1latest | 2 years ago | MIT |
| 2.30.0 | 2 years ago | MIT |
| 2.29.4 | 4 years ago | MIT |
| 2.29.3 | 4 years ago | MIT |
| 2.29.2 | 4 years ago | MIT |
| 2.29.1 | 5 years ago | MIT |
| 2.29.0 | 5 years ago | MIT |
| 2.28.0 | 5 years ago | MIT |
| 2.27.0 | 6 years ago | MIT |
| 2.26.0 | 6 years ago | MIT |
| 2.25.3 | 6 years ago | MIT |
| 2.25.2 | 6 years ago | MIT |
| 2.25.1 | 6 years ago | MIT |
| 2.25.0 | 6 years ago | MIT |
| 2.24.0 | 7 years ago | MIT |
| 2.23.0 | 7 years ago | MIT |
| 2.22.2 | 8 years ago | MIT |
| 2.22.1 | 8 years ago | MIT |
| 2.22.0 | 8 years ago | MIT |
| 2.21.0 | 8 years ago | MIT |
Maintainers
Frequently asked questions
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 32,650,152 downloads per week.