dayjs
npmv1.11.21TypeScript2KB immutable date time library alternative to Moment.js with the same modern API
Overview
dayjs is an npm package that 2KB immutable date time library alternative to Moment.js with the same modern API. It is extremely widely used, with about 56.3M downloads per week. The latest version is 1.11.21, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need 2KB immutable date time library alternative to Moment.js with the same modern API 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 (56.3M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- Large dependency tree (30 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Dependencies
Dev (30)
Alternatives to dayjs
Parse, validate, manipulate, and display dates
Create your next immutable state by mutating the current one
Predictable state container for JavaScript apps
The official, opinionated, batteries-included toolset for efficient Redux development
Immutable Data Collections
Version history
| Version | Published | License |
|---|---|---|
| 1.11.21latest | 1 month ago | MIT |
| 1.11.20 | 4 months ago | MIT |
| 1.11.19 | 8 months ago | MIT |
| 1.11.18 | 10 months ago | MIT |
| 1.11.17 | 10 months ago | MIT |
| 1.11.16 | 10 months ago | MIT |
| 1.11.15 | 10 months ago | MIT |
| 1.11.14 | 10 months ago | MIT |
| 1.11.13 | 1 year ago | MIT |
| 1.11.12 | 2 years ago | MIT |
| 1.11.11 | 2 years ago | MIT |
| 1.11.10 | 2 years ago | MIT |
| 1.11.9 | 3 years ago | MIT |
| 1.11.8 | 3 years ago | MIT |
| 1.11.7 | 3 years ago | MIT |
| 1.11.6 | 3 years ago | MIT |
| 2.0.0-alpha.4 | 3 years ago | MIT |
| 2.0.0-alpha.3 | 3 years ago | MIT |
| 1.11.5 | 3 years ago | MIT |
| 1.11.4 | 4 years ago | MIT |
Maintainers
Frequently asked questions
How do I install dayjs?
Run `npm install dayjs` to add dayjs to your npm project.
What license is dayjs released under?
dayjs is distributed under the MIT license.
How popular is dayjs?
dayjs has approximately 56,303,936 downloads per week.