naM ,sevitcepsreP weN

    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

    11

    Version

    1.1.0

    License

    ISC

    Last publish

    Collaborators

    • eoinsha