vtt-json

1.0.1 • Public • Published

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?

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-json")
 
let vttString = '...';
 
vttToJson(vttString)
.then((result) => {
  console.log(result)
});

License

MIT © dsslimshaddy

Readme

Keywords

Package Sidebar

Install

npm i vtt-json

Weekly Downloads

12

Version

1.0.1

License

MIT

Last publish

Collaborators

  • dsslimshaddy