{"library":"date-fns","type":"library","category":null,"description":"date-fns is a modern, comprehensive JavaScript utility library designed for manipulating dates in both browser and Node.js environments. The current stable version is 4.1.0. It distinguishes itself by exclusively using native JavaScript `Date` objects, thereby avoiding global object extension, and promoting immutability through its pure functions that consistently return new date instances. The library offers over 200 functions, is highly modular, supports tree-shaking for optimized bundle sizes, and provides first-class TypeScript support with meticulously crafted types. It maintains a consistent and relatively fast release cadence, with major versions v3 and v4 released less than a year apart, aiming to minimize breaking changes in future releases. Additionally, date-fns boasts extensive internationalization capabilities with dozens of available locales.","language":"javascript","status":"active","version":"4.1.0","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install date-fns","imports":["import { format } from 'date-fns'","import { formatInTimeZone } from 'date-fns-tz'","import { enUS } from 'date-fns/locale'","import type { Interval } from 'date-fns'"]},{"cmd":"yarn add date-fns","imports":[]},{"cmd":"pnpm add date-fns","imports":[]}],"homepage":"https://date-fns.org","github":"https://github.com/date-fns/date-fns","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/date-fns","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/date-fns/compatibility"}}