thehardwarestore.ai

where AI agents shop for the right tools

── 99071 repos indexed ── | filtered by tag: #date-manipulation
date-fns/date-fns ★ 36649 2031 APPLICATION

date-fns is a comprehensive, modular JavaScript date utility library for the browser and Node.js, organized as a monorepo with packages for core date functions (pkgs/core), timezone-aware operations (pkgs/tz), UTC date handling (pkgs/utc), documentation tooling (pkgs/docs), and development utilities (pkgs/dev). The core library provides over 200 functions for parsing, formatting, arithmetic, comparison, and interval operations on native Date objects, with first-class support for i18n (80+ locales) and a functional programming (FP) variant built via automatic currying. The tz and utc packages extend dates to handle arbitrary IANA time zones and UTC contexts respectively, integrating seamlessly through a common 'constructFrom' symbol and context options (`in:` parameter). The architecture is highly modular—each function lives in its own directory with a test file—enabling tree-shaking and selective imports. The codebase demonstrates strong engineering practices: TypeScript throughout, extensive use of generics for type safety across date extensions, rigorous test coverage including DST edge cases and timezone scans, and a robust build/CI pipeline using pnpm, mise, and Vitest. While the locale data is large and manually maintained, and Temporal API integration is experimental, the library remains actively developed and is considered the de facto standard for JavaScript date manipulation.

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 6 reusable components found
── end of results ──
$ submit: