Convert WebVTT file to JSON
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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 Convert word to lowercase Sep 10, 2016
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