vtt-2-json

1.1.4 • Public • Published

vtt-2-json

Convert WebVTT file to JSON

Install

$ npm install --save vtt-2-json

Usage

const vttToJson = require("vtt-2-json")

let vttString = '...';

vttToJson(vttString)
.then((result) => {
  console.log(result)
});

API

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-2-json")

let vttString = '...';

vttToJson(vttString)
.then((result) => {
  console.log(result)
});

License

MIT © Kim

Readme

Keywords

Package Sidebar

Install

npm i vtt-2-json

Weekly Downloads

142

Version

1.1.4

License

MIT

Unpacked Size

15.8 kB

Total Files

7

Last publish

Collaborators

  • seolahkim.asia