vtt-to-json

Convert VTT file to JSON

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
vtt-to-json
0.1.18 years ago8 years agoMinified + gzip package size for vtt-to-json in KB

Readme

vtt-to-json Build Status

Convert WebVTT file to JSON

Install

$ npm install --save vtt-to-json

Usage

const vttToJson = require("vtt-to-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-to-json")

let vttString = '...';

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

License

MIT © Joe Gesualdo()