Skip to content
JS
Package

format-duration

Convert a number in milliseconds to a standard duration string.

v4.0.0, 13 Jun 2026ISCESM onlyTypes: BundledDate and time
$ npm install format-duration

Key numbers

As of 25 Sept 2026
Weekly downloads
22.4k
+2% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
3 months ago
v4.0.0
GitHub stars
60
13 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
29

Downloads

Last week 2026-09-15 to 2026-09-21
010k20k30k40kSept 2025Mar 2026Sept 2026High 38.5k (24 Feb 2026)Low 16.2k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

22,414 downloads last week, 108,181 in the last month. The 12-month change of +2% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
4.0.0, 13 Jun 20263 months ago
First published
-
Last push to GitHub
19 Sept 20266 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
29
Dependents on npm
44

Major versions

-

Recent releases

-

Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=22.12.0
Runtimes
-
Unpacked size (npm)
7.2 kB
Dependencies (0)
None
npm install format-duration
  • jsDelivrhttps://cdn.jsdelivr.net/npm/format-duration@4.0.0/
  • unpkghttps://unpkg.com/format-duration@4.0.0/
  • esm.shhttps://esm.sh/format-duration@4.0.0
PackageWeekly downloadsGzipLast releaseModuleComparison
nanoseconds23.1k-8 years agoCommonJS-
date-and-time325k-2 days agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.