node-timecodes
Time and SMTPE Timecodes conversions
references :
Usage
Install with npm i -s node-timecodes
var timecodes = ; timecodes; // -> 1427.4 timecodes; // -> '00:23:47:10' // you can use a specific frameRatetimecodes; // -> '00:23:47:11' // use ms format for WebVTT timestampstimecodes; // -> '00:23:47:400' // change default framerate to all methodstimecodesconstantsframerate = 2997timecodes; // -> '00:23:47:11'
Run as CLI :
$ timecodeFromSeconds 1427.4# 00:23:47:10 $ timecodeToSeconds 00:23:47:10# 1427.4
Scripts
- npm run readme :
node ./node_modules/.bin/node-readme
- npm run test :
./node_modules/babel-tape-runner/bin/babel-tape-runner spec/**/*.spec.js | ./node_modules/.bin/tap-spec
- npm run build :
babel src --out-dir dist
Author
Julien Bouquillon julien.bouquillon@synchronized.tv http://github.com/Synchronized-TV