beautiful.ms

1.0.30 • Public • Published

beautiful.ms

Easily convert milliseconds to a human-readable date string

Usage

require('beautiful.ms')(duration)

Code example

console.log(require('beautiful.ms')(2792693691263)) // 8 decades, 8 years, 5 months, 4 weeks, 15 hours, 44 minutes and 51 seconds

Change logs

1.0.2 => 1.0.3

1. Fixed the output returning days as months + extra days, hopefully the last bug to be found on this package 

1.0.1 => 1.0.2

1. Made the package return more in-depth results
2. Fixed the problem that made the package return totally invalid results

Package Sidebar

Install

npm i beautiful.ms

Weekly Downloads

3

Version

1.0.30

License

MIT

Unpacked Size

1.76 kB

Total Files

3

Last publish

Collaborators

  • noobiedev