Skip to content

EvasiveXkiller/simple-timecode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-timecode

A simple tool to convert timecodes

GitHub Workflow Status GitHub repo size GitHub

What do you expect?

Timecode

Class to handle static function

Kind: global class

Timecode.MillisecondsToTime(ms) ⇒ string

Converts millisecond to standard time code

Kind: static method of Timecode
Returns: string - Converted Timecode Eg. 2:55:55

Param Description
ms Milliseconds in number

Example

const time = Timecode.MillisecondsToTime(32000000)

Timecode.TimeToMilliseconds(time) ⇒ number

Converts a standard time code to milliseconds.

Kind: static method of Timecode
Returns: number - Milliseconds

Param Description
time The time code. Eg. 2:55:55

Example

const ms = Timecode.TimeToMilliseconds("4:30:00");

Tests

Tests are written in tape

To run them, just do:

npm run test

Contributing

Any is welcomed. Just open a PR.

About

A simple timecode converter, written in Javascript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published