Convert VTT file to JSON
npm install vtt-2-json
$ npm install --save vtt-2-json
`Usage
`javascript
const vttToJson = require("vtt-2-json")let vttString = '...';
vttToJson(vttString)
.then((result) => {
console.log(result)
});
`API
$3
> 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.`javascript
const vttToJson = require("vtt-2-json")let vttString = '...';
vttToJson(vttString)
.then((result) => {
console.log(result)
});
``