1.1.0 • Published 7 years ago

vtt-cue-object v1.1.0

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

vtt-cue-object

Build Status

Simple wrapper around vtt.js that runs without any browser and produces an object representation of WebVTT cues.

Usage

var VttToObject = require('vtt-cue-object');
var vttText = '...'; // (WebVTT subtitles as a string)
VttToObject(vttText, function (err, obj) {
  if (!err) {
    // obj has startTime and endTime (decimal seconds) and text (string)
  }
});
1.1.0

7 years ago

1.0.6

7 years ago

1.0.5

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago