Back to Explore

felixge/node-dateformat

GitHub
1 watchersOpen source

Last release:

A Node.js package that formats JavaScript dates using Steven Levithan’s dateFormat() function, with options for predefined named masks or custom masks. It’s useful when you need consistent date and time string formatting, including support for UTC/GMT formatting and ISO 8601-related values like week number (W) and day-of-week number (N).

Project status

  • The repository appears quiet/dormant relative to today (2026-08-12), with the last upstream push on 2023-03-31, and the most recent published package update on 2022-02-19 (v5.0.3).
  • Update cadence is low and irregular, with updates clustering in 2021-09 to 2022-02, then no further updates for multiple years.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v5.0.3

    Release v5.0.3 updates the package metadata to address a Node ES module deprecation warning related to how the package.json main field is resolved. The change ensures the main entry includes an explicit .js extension.

  • v5.0.2

    Release v5.0.2 contains only a documentation update. The release notes mention updating docs for dateformat imports, and the code diff shows the README examples were changed to use different import and mutation patterns.

  • v5.0.1

    Release v5.0.1 is described as focusing on bundle size reductions, a fix for an Australia-specific `Z` format issue, and a breaking change to how the library is imported. The provided code diff, however, shows only package metadata and a heavily modified lockfile, with no actual source diff included.

    Breaking
  • v4.6.2

    Release v4.6.2 addresses an import-related breakage reported as a breaking change. This update focuses on restoring compatibility for how modules are imported by developers.

  • v4.6.1

    Release v4.6.1 focuses on reducing bundle size and fixing the `Z` mask formatting for Australia time zones. The release notes are brief and do not mention any module system or API surface changes.

  • v4.5.1

    Release v4.5.1 is described as a small bug fix release. The release notes claim it fixes the `WW` mask not working, but the provided code diff shows only version metadata updates.

  • v4.5.0

    Release v4.5.0 adds support for a new date format mask token, `WW`, to output the ISO week number with leading zero padding. The implementation extends the token parser and formatter mapping to recognize and render `WW`, and it adds corresponding test coverage.

    Features
  • v4.4.2

    Release 4.4.2 updates the handling of the DDD and DDDD masks. The documented change fixes cases where those masks sometimes failed to produce the expected output for “Today”, “Yesterday”, and “Tomorrow” labels.

  • v4.4.1

    Release v4.4.1 updates the `DDD` formatting token, which represents short labels for Yesterday, Today, and Tomorrow. The short outputs are changed to `Ysd`, `Tdy`, and `Tmw`, and the README and tests are updated accordingly.

    Breaking