vtt-creator
Very basic and experimental Node.js/JavaScript library to generate VTT open subtitles files
Install
With NPM:
npm install --save vtt-creator
or with Bower:
With NPM:
bower install --save vtt-creator
Example
To include Vtt in your Node.js project simply use:
var Vtt = ;
or in a fronted app using bower (Vtt
will be available as a global instance):
Usage:
var v = ;v;v; console;
the previous snippet will generate:
WEBVTT 100:00:01.050 --> 00:00:04.000 align:middle line:84%Never drink liquid nitrogen. 200:00:05.000 --> 00:00:09.000It will perforate your stomach.You could die.
Contributing
Everyone is very welcome to contribute to this project. You can contribute just by submitting bugs or suggesting improvements by opening an issue on GitHub.
License
Licensed under MIT License. © Luciano Mammino.