A lightweight JavaScript library for formatting durations (milliseconds) into human-readable strings using template patterns with placeholders for days, hours, minutes, seconds, and milliseconds. Version 0.0.2 is the latest and only release, with no active development. It differs from other duration formatters (e.g., moment.js duration, Intl.RelativeTimeFormat) by offering a simple, pattern-based syntax inspired by Ruby's String#% and does not depend on any external libraries. The library works in both Node.js and browser environments and supports zero-padding via number prefix in placeholders.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Package only provides a CommonJS default export; ESM import works in bundlers but is not officially supported.
The library exports a single function as module.exports.
Not applicable since there is no .default export; this is not a valid pattern.
Formats a duration (in milliseconds) using templates with optional zero-padding placeholders.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.