vtt-cue-object

1.1.0 • Public • Published

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)
  }
});

Readme

Keywords

Package Sidebar

Install

npm i vtt-cue-object

Weekly Downloads

3

Version

1.1.0

License

ISC

Last publish

Collaborators

  • eoinsha