pretty-track-time
v1.0.1
Published
Display seconds as h:mm:ss (media format)
Downloads
3
Readme
pretty-track-time
Display media time format as
h:mm:ss
instead of seconds. Useful for media players (e.g. ReactSoundPlayer).
Example
import prettyTrackTime from 'pretty-track-time';
console.log(prettyTrackTime(206)) // seconds
// returns `03:26`
MIT Licensed