</>PackageGraphPackageGraph

dayjs

npmv1.11.21TypeScript

2KB immutable date time library alternative to Moment.js with the same modern API

56.3M
Weekly downloads
0
Dependents
30
Dependencies
93/100
Popularity

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)

@babel/cli ^7.0.0-beta.44@babel/core ^7.0.0-beta.44@babel/node ^7.0.0-beta.44@babel/preset-env ^7.0.0-beta.44@semantic-release/github ^11.0.4babel-core ^7.0.0-bridge.0babel-jest ^22.4.3babel-plugin-external-helpers ^6.22.0cross-env ^5.1.6eslint ^4.19.1eslint-config-airbnb-base ^12.1.0eslint-plugin-import ^2.10.0eslint-plugin-jest ^21.15.0gzip-size-cli ^2.1.0jasmine-core ^2.99.1jest ^22.4.3karma ^2.0.2karma-jasmine ^1.1.2karma-sauce-launcher ^1.1.0mockdate ^2.0.2moment 2.29.2moment-timezone 0.5.31ncp ^2.0.0pre-commit ^1.2.2prettier ^1.16.1rollup ^2.45.1rollup-plugin-babel ^4.4.0rollup-plugin-terser ^7.0.2size-limit ^0.18.0typescript ^2.8.3

Alternatives to dayjs

Version history

VersionPublishedLicense
1.11.21latest1 month agoMIT
1.11.204 months agoMIT
1.11.198 months agoMIT
1.11.1810 months agoMIT
1.11.1710 months agoMIT
1.11.1610 months agoMIT
1.11.1510 months agoMIT
1.11.1410 months agoMIT
1.11.131 year agoMIT
1.11.122 years agoMIT
1.11.112 years agoMIT
1.11.102 years agoMIT
1.11.93 years agoMIT
1.11.83 years agoMIT
1.11.73 years agoMIT
1.11.63 years agoMIT
2.0.0-alpha.43 years agoMIT
2.0.0-alpha.33 years agoMIT
1.11.53 years agoMIT
1.11.44 years agoMIT

Maintainers

Keywords

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.