Convert WebVTT file to JSON
Switch branches/tags
Nothing to show
Clone or download
Latest commit 34b8839 Sep 10, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Fix Sep 6, 2016
.gitignore Initial commit Apr 9, 2016
.travis.yml Initial commit Apr 9, 2016
index.js
npm-debug.log Bump version Sep 10, 2016
package.json Bump version Sep 10, 2016
readme.md Improve code Jul 27, 2016
test.js Initial commit Apr 9, 2016

readme.md

vtt-to-json Build Status

Convert WebVTT file to JSON

Install

$ npm install --save vtt-to-json

Usage

const vttToJson = require("vtt-to-json")

let vttString = '...';

vttToJson(vttString)
.then((result) => {
  console.log(result)
});

Test

$ npm test

API

vttToJson(vttString)

What does this method do?

Name Type Description
vttString String A string representing the vtt you want to convert.

returns Promise that passed the vtt json value.

const vttToJson = require("vtt-to-json")

let vttString = '...';

vttToJson(vttString)
.then((result) => {
  console.log(result)
});

License

MIT © Joe Gesualdo