Closed samprity closed 6 years ago
Current example usage
const vttToJson = require("vtt-to-json") let vttString = "..."; vttToJson(vttString) .then((result) => { console.log(result) });
How can we load a webvtt file instead of using strings?
It doesn't support file paths at the current time. Instead, you could get/read the file contents and then pass them to the function.
Current example usage
How can we load a webvtt file instead of using strings?