npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

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

install

npm i vtt-cue-object

Downloadsweekly downloads

13

version

1.1.0

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability