Convert WebVTT file to JSON
$ npm install --save vtt-to-json
const vttToJson = require("vtt-to-json")
let vttString = '...';
vttToJson(vttString)
.then((result) => {
console.log(result)
});
$ npm test
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)
});
MIT © Joe Gesualdo