pretty-ms

Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`

MIT License

Downloads
24M
Stars
1K
Committers
21

Bot releases are visible (Hide)

pretty-ms - Latest Release

Published by sindresorhus 9 months ago

Breaking

  • Require Node.js 18 (#65) 228dd07

Improvements

  • Support BigInt (#66) 014edf2
  • Improve output for big numbers (#65) 228dd07

https://github.com/sindresorhus/pretty-ms/compare/v8.0.0...v9.0.0

pretty-ms -

Published by sindresorhus over 2 years ago

Breaking

  • Require Node.js 14 4081b02 c65a1bb
  • This package is now pure ESM. Please read this.

https://github.com/sindresorhus/pretty-ms/compare/v7.0.1...v8.0.0

pretty-ms -

Published by sindresorhus about 4 years ago

  • Fix sub-second output when using colonNotation option (#53) 8fdcaec

https://github.com/sindresorhus/pretty-ms/compare/v7.0.0...v7.0.1

pretty-ms -

Published by sindresorhus over 4 years ago

Breaking

  • Always floor time instead of rounding up (#49) 20cbdaf
    It's probably not breaking to most users, but if you depend on the exact output, in for example, unit tests, the output might have changed slightly.

https://github.com/sindresorhus/pretty-ms/compare/v6.0.1...v7.0.0

pretty-ms -

Published by sindresorhus over 4 years ago

  • Fix spacing when using colonNotation option (#47) 0de4dc3

https://github.com/sindresorhus/pretty-ms/compare/v6.0.0...v6.0.1

pretty-ms -

Published by sindresorhus over 4 years ago

Breaking

  • Require Node.js 10 46433b4
  • Remove tilde prefix ~ from compact and unitCount option output 4e3c6a6 737628f

Fixes

  • Fix milliseconds rounding inconsistency (#41) f48b81c

https://github.com/sindresorhus/pretty-ms/compare/v5.1.0...v6.0.0

pretty-ms -

Published by sindresorhus almost 5 years ago

pretty-ms -

Published by sindresorhus over 5 years ago

Breaking:

  • Require Node.js 8 8d1fe1e
  • Rename some options:
    • secDecimalDigitssecondsDecimalDigits
    • msDecimalDigits millisecondsDecimalDigits
    • separateMsseparateMilliseconds
    • formatSubMsformatSubMilliseconds

Enhancements:

  • Add TypeScript definition (#33) f442bfa

https://github.com/sindresorhus/pretty-ms/compare/v4.0.0...v5.0.0

pretty-ms -

Published by sindresorhus about 6 years ago

Breaking:

  • Require Node.js 6. b5a583d

Other:

  • Add unitCount option. (#29) 4717127
  • Add option to format microseconds and nanoseconds. (#25) 0950e70
  • Fix {secDecimalDigits: 0} rounding rollover issue. (#27) 7602f88

https://github.com/sindresorhus/pretty-ms/compare/v3.2.0...v4.0.0

Package Rankings
Top 1.05% on Npmjs.org
Top 6.73% on Proxy.golang.org
Top 21.51% on Repo1.maven.org
Top 9.19% on Bower.io