Package
format-duration
Convert a number in milliseconds to a standard duration string.
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
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- jsDelivr
https://cdn.jsdelivr.net/npm/format-duration@4.0.0/ - unpkg
https://unpkg.com/format-duration@4.0.0/ - esm.sh
https://esm.sh/format-duration@4.0.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| nanoseconds | 23.1k | - | 8 years ago | CommonJS | - |
| date-and-time | 325k | - | 2 days ago | ESM + CommonJS | - |
Indexability: Indexed.