Rare find

Pretty MS. Turn raw milliseconds into readable time like '15d 11h 23m 20s'.

github.com/sindresorhus/pretty-ms

Vaya's read on this project

Problem, audience, market, and the verdict — sign in to see it.

Updates

July 2026
  • Add FAQ explaining formatted-difference rounding inconsistency
November 2025
  • Meta tweaks
October 2025
  • Add FAQ explaining why months/years are not supported
September 2025
  • Release —
  • 9.3.0
  • Add `subSecondsAsDecimals` option
November 2024
  • Release —
  • 9.2.0
  • Meta tweaks
  • Add `hideYears`, `hideYearsAndDays`, and `hideSeconds` options (#72)
July 2024
  • Release —
  • 9.1.0
  • Support negative milliseconds (#71)
May 2024
  • Run CI on Node.js 22 and upgrade `devDependencies` (#69)
January 2024
  • Release —
  • 9.0.0
  • Meta tweaks
  • Simplify logic (#68)
  • Support `BigInt` (#66)
  • Do not mutate `options` (#67)
  • Improve output for big numbers, require Node.js 18 (#65)
July 2022
  • Meta tweaks
June 2022
  • Release —
  • 8.0.0
  • Require Node.js 14
September 2020
  • Release —
April 2020
  • Release —
March 2020
  • Release —
February 2020
  • Release —
November 2019
  • Release —