# felixge/node-dateformat

A node.js package for Steven Levithan's excellent dateFormat() function.

Repository: https://github.com/felixge/node-dateformat
Canonical: https://ross.abutalabs.com/products/node-dateformat
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2023-03-31T14:05:02+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5652, "days_push": 1251, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1292, forks 155 (observed 2026-08-28T04:04:16.046189+00:00)

## What it is
A Node.js package implementing Steven Levithan's dateFormat() function for formatting dates with customizable mask patterns. It supports named masks, custom masks, UTC conversion, and ISO 8601 week/day-of-week output.

## Use cases
- format dates as strings in node.js
- convert a Date to ISO 8601 format
- format dates with custom mask patterns
- convert local time to UTC when formatting
- get ISO week number of the year
- format a date string like 'Saturday, June 9th, 2007'

## When to choose
- you need lightweight, flexible date formatting with mask patterns in Node.js
- you want named or custom format masks without extending Date.prototype
- you need UTC conversion or ISO 8601 week/day formatting

## When to avoid
- you need locale-aware internationalized date formatting
- you need date parsing, manipulation, or timezone arithmetic rather than formatting
- you are using modern Temporal API or a full library like date-fns or dayjs

## Facets
- artifact type: library
- maturity: maintenance
- function: date-time, formatter
- domain: developer-tools, web-development
- platform: -
- tags: date-formatting, npm-package, date-masks, command-line, nodejs, javascript

## Member repositories
- felixge/node-dateformat (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:16.046189+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:54:43.800059+00:00, confidence not recorded.
  - readme: https://github.com/felixge/node-dateformat (fetched 2026-08-28T04:04:16.046189+00:00, sha 5c2b34fc07b9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
