0.1.1 • Published 9 years ago
vtt-to-json v0.1.1
vtt-to-json 
Convert WebVTT file to JSON
Install
$ npm install --save vtt-to-jsonUsage
const vttToJson = require("vtt-to-json")
let vttString = '...';
vttToJson(vttString)
.then((result) => {
console.log(result)
});Test
$ npm testAPI
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