@media-manager/time-utils
v0.1.0-alpha.0
Published
Library with useful functions to deal with time issues. Time is gold.
Readme
Time utils
Library with useful functions to deal with time issues.
Installation
Install the module
npm install @media-manager/time-utils --saveThis package assumes that your code will run in an ES2015+ environment. If you're using an environment that has limited or no support for ES2015+ such as IE browsers then using core-js will add polyfills for these methods.
API
Regular Expressions
timecodeRegExp
Helpers
convertSecondsToTimeCode()
import { convertSecondsToTimeCode } from '@media-manager/time-utils';
console.log( `200 seconds in time format: ${ convertSecondsToTimeCode( 200 ) }` );