PACKAGE · DATE & TIME

@js-joda/core

a date and time library for javascript

WEEKLY DOWNLOADS 7.9M
STARS 1.7K
FORKS 136
OPEN ISSUES 8
GZIP SIZE 43.3 kB
UNPACKED SIZE 7.9 MB
DEPENDENCIES 1
LAST UPDATED 10mo ago
DOWNLOAD TRENDS

@js-joda/core downloads · last 12 months

Download trends for @js-joda/core1 download series from Nov 2025 to Oct 2026. Use left and right arrow keys to inspect monthly values.06.3M12.5M18.8M25.1MNov 2025FebMayAugOct 2026
@js-joda/core
ABOUT @JS-JODA/CORE

@js-joda/core is a JavaScript date and time library for representing and working with dates, times, and related values. It addresses the common problem of treating calendar dates and clock times as interchangeable with timestamps, which can make calculations and application rules harder to express clearly.

Its Joda and ThreeTen topics signal a design lineage focused on explicit date-and-time concepts and immutable values. That approach suits developers who want to model time-related domain rules with objects rather than relying only on JavaScript’s built-in Date representation; the package is categorized under Date & Time.

The package’s API is centered on date-and-time types and operations, so applications can express values and calculations in terms of the relevant temporal concept. Use those APIs at domain boundaries and in business rules, and keep serialization or conversion to other representations explicit where your application requires it.

As an npm package, @js-joda/core can be used in JavaScript applications and integrated into existing build and test workflows. Its date, immutable, joda, threeten, time, and timezone topics help identify its scope, but the supplied package information does not specify particular framework integrations or timezone-data behavior, so check those requirements before adopting it.

The package reports a 43.3 kB gzip bundle size and a 7.9 MB unpacked size; these figures describe different measures and should be considered separately when assessing distribution and installation. Version 6.3.2 has 5.8M weekly downloads, 1.7K GitHub stars, 133 forks, and 7 open issues, with a listed update date of 2026-10-31; it is licensed under BSD-3-Clause.

The core package’s exact API surface and timezone capabilities are not detailed in the supplied metadata, so confirm the documentation against your required operations before choosing it. In particular, distinguish date-and-time values from timezone rules and verify that the package components you select cover the conversions and data your application needs.

WHEN TO USE
  • When modeling calendar dates and clock times as distinct values, use @js-joda/core’s date-and-time APIs instead of treating every value as a JavaScript Date.
  • When business rules benefit from immutable temporal values, use the package’s Joda/ThreeTen-style approach to make date-and-time transformations explicit.
  • When implementing date calculations that should be expressed in terms of temporal values, use the library’s APIs rather than scattering timestamp arithmetic through application code.
  • When a domain model includes date, time, or timezone concerns, evaluate @js-joda/core as the shared date-and-time layer and verify the required timezone behavior in its documentation.
  • When integrating date-and-time logic into an npm-based JavaScript project, use the package within the project’s existing build and test workflows.
  • When bundle size is a consideration, compare the reported 43.3 kB gzip size with your application’s budget before including the package.
WHEN NOT TO USE
  • If your code only needs a current timestamp or basic built-in Date operations, use JavaScript’s Date directly to avoid adding a separate date-and-time API.
  • If your application requires a specific timezone-data or daylight-saving behavior, do not assume the core package provides it; verify its documented capabilities and add an appropriate timezone solution if needed.
  • If your project has a strict client bundle budget below the reported 43.3 kB gzip size, assess a lighter approach or avoid shipping the library to that client bundle.
  • If you need a particular API or operation that is not confirmed by the package documentation, verify support before adopting it; otherwise use a date-and-time approach with the required operation documented.
  • If your codebase is organized around plain serialized strings or numeric timestamps and has no need for temporal domain objects, retain those representations and convert only where date-and-time calculations are required.
  • If your runtime or toolchain cannot consume the package in its published npm form, choose a date-and-time implementation compatible with that environment or add a suitable build transformation.

CORRECTIONS

Spot wrong data here?

A short note helps us fix it.

Anonymous · No account · No email back

COMPARISONS 5
@js-joda/core vs moment ★ 47.9K · 51.4M/wk @js-joda/core vs date-fns ★ 36.7K · 123.1M/wk @js-joda/core vs luxon ★ 16.5K · 60.1M/wk @js-joda/core vs @formkit/tempo ★ 2.6K · 125.3K/wk @js-joda/core vs dayjs ★ 48.6K · 114.1M/wk