pretty-ms icon indicating copy to clipboard operation
pretty-ms copied to clipboard

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

Results 2 pretty-ms issues
Sort by recently updated
recently updated
newest added

I have observed that negative milliseconds are not parsed as expected. For example ```js var prettyMs = require("[email protected]") prettyMs(13370); // 13.3s prettyMs(-13370); // -13s -370ms ``` **Expected**: `-13.3s` **Actual**: `-13s...

bug
help wanted

> @sindresorhus Would you accept a PR that takes an option to keep the decimals on whole numbers? I'm using this library for a progress indicator thingy which keeps updating...

enhancement
help wanted