pretty-ms is a JavaScript utility for converting millisecond values into compact, human-readable durations. It accepts both numbers and BigInt values and automatically breaks durations into appropriate time units. Developers can choose concise output, full unit names, or digital-clock-style colon notation. Precision controls determine how seconds and milliseconds are rounded and displayed. The package can expose microseconds and nanoseconds for sub-millisecond values and can represent sub-second durations as decimal seconds. Options also let applications limit the number of displayed units or hide particular duration components. It is useful for timers, benchmarks, progress indicators, logs, and other interfaces that need readable elapsed-time values.

Features

  • Human-readable millisecond conversion
  • Number and BigInt input support
  • Compact and verbose formatting modes
  • Digital clock-style colon notation
  • Microsecond and nanosecond formatting
  • Configurable precision and visible units

Project Samples

Project Activity

See All Activity >

Categories

Calculators

License

MIT License

Follow pretty-ms

pretty-ms Web Site

Other Useful Business Software
Build Agents and Models on One Platform Icon
Build Agents and Models on One Platform

Everything you need to build production-ready agents and models. Access 200+ Google and third-party AI models and tools.

Gemini Enterprise Agent Platform is Google Cloud's comprehensive platform for developers to build, scale, govern, and optimize agents and models. Choose from Google's most advanced models and third-party models like Anthropic's Claude Model Family.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of pretty-ms!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Calculators

Registered

20 hours ago