{"library":"anywhen","type":"library","category":null,"description":"anywhen is a tiny (1.1kb gzip) zero-dependency date formatter that provides three modes: smart (context-aware, showing relative or absolute depending on distance from now), absolute (via Intl.DateTimeFormat), and relative (via Intl.RelativeTimeFormat). It supports any Intl locale out of the box, requires no locale files or plugins, and ships TypeScript types. Current stable version is 0.3.1. It is actively maintained (as of mid-2025) and is more lightweight than libraries like dayjs or date-fns while focusing specifically on human-readable output. Key differentiators: single function with intelligent defaults, SSR-safe with custom `now` and `timeZone` options, and no dependencies.","language":"javascript","status":"active","version":"0.3.1","tags":["javascript","date","datetime","time","relative-time","date-formatting","human-readable","ssr","nextjs","typescript"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install anywhen","imports":["import { anywhen } from 'anywhen'","import type { AnywhenOptions } from 'anywhen'","import type { AnywhenMode } from 'anywhen'"]},{"cmd":"yarn add anywhen","imports":[]},{"cmd":"pnpm add anywhen","imports":[]}],"homepage":"https://github.com/kirilinsky/anywhen#readme","github":"https://github.com/kirilinsky/anywhen","docs":null,"changelog":null,"pypi":null,"npm":"anywhen","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}