1.0.1 • Published 7 years ago

vtt-json v1.0.1

Weekly downloads
241
License
MIT
Repository
github
Last release
7 years ago

vtt-to-json CircleCI

Convert WebVTT file to JSON

Install

$ npm install --save vtt-json

Usage

const vttToJson = require("vtt-json")

let vttString = '...';

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

Test

$ npm test

API

vttToJson(vttString)

What does this method do?

NameTypeDescription
vttStringStringA string representing the vtt you want to convert.

returns Promise that passed the vtt json value.

const vttToJson = require("vtt-json")

let vttString = '...';

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

License

MIT © dsslimshaddy