date-fns
JSON →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.
Traffic · last 30 days ↓40% vs prev 7d
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇩🇪 Germany · 🇨🇦 Canada · 🇫🇷 France