1.0.3 • Published 6 years ago

ms-long v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

ms-long

ms-long is a package that allows the quick conversion of ms time to a readable format.

Usage

const mslong = require("ms-long");

//standard usage
mslong(240433673) //returns string "2 days, 18 hours, 47 minutes, 13 seconds, 673 milliseconds"

mslong(240433673, {short: true}) //returns string "2d, 18h, 47m, 13s, 673ms"

msLong(240433673, {array: true}) //returns array { days: 2, hours: 18, minutes: 47, seconds: 13, milliseconds: 673 }

msLong(240433673, {array: true, short: true}) //returns array { days: '2d', hours: '18h', minutes: '47m', seconds: '13s' milliseconds: '673ms' }
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago