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