A lightweight time formatter library (v1.2.1). Provides a simple API to format Date objects with customizable format strings. Uses a replacer map with tokens like YYYY, MM, DD, HH, etc. Includes both class method (Time.format) and convenience method (Time.get). Ships TypeScript types. Stable, no recent updates.
npm install 3h-timeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Formats a Date object using common tokens and shows usage of Time.get() for current date.
Use `import { Time } from '3h-time'` or dynamic import.Use type inference or create your own types if needed.
Avoid modifying replacers directly.
Use 'sss' for full 3-digit milliseconds; otherwise behavior varies.
Install the correct package: `npm install 3h-time` and use named import as shown.
Use `import { Time } from '3h-time'`.Switch to ESM ("type": "module" in package.json) or use dynamic import.Run `npm install 3h-time` and check import path.
No dependency data recorded yet.