formatted-ms
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

formatted-ms

Format raw milliseconds to Years, Days, Hours, minutes, seconds, milliseconds.

Why?

formatted-ms is for my package DCHandler.js

Examples

import formatMS, { objectMS } from 'format-ms';

console.log(formatMS(123456789)) // => '1d 10h 17m 36s 789ms'

console.log(objectMS(123456789)) // => {
// 	days: 1,
// 	hours: 10,
// 	minutes: 17,
// 	seconds: 36,
// 	milliseconds: 789,
// }

Me

License

MIT

Free Software, Hell Yeah!

Made with love

Macen <3

Readme

Keywords

none

Package Sidebar

Install

npm i formatted-ms

Weekly Downloads

2

Version

1.0.1

License

mit

Unpacked Size

4.27 kB

Total Files

6

Last publish

Collaborators

  • macen