Display media time format as
h:mm:ss
instead of seconds. Useful for media players (e.g. ReactSoundPlayer).
import prettyTrackTime from 'pretty-track-time';
console.log(prettyTrackTime(206)) // seconds
// returns `03:26`
MIT Licensed
Display media time format as
h:mm:ss
instead of seconds. Useful for media players (e.g. ReactSoundPlayer).
import prettyTrackTime from 'pretty-track-time';
console.log(prettyTrackTime(206)) // seconds
// returns `03:26`
MIT Licensed
npm i pretty-track-time
1
1.0.1
MIT