ttml2srt

Convert TTML subtitles to SRT format.

Usage no npm install needed!

<script type="module">
  import ttml2srt from 'https://cdn.skypack.dev/ttml2srt';
</script>

README

ttml2srt

npm npm downloads

Install

npm i ttml2srt

Usage

const { ttml2srt } = require('ttml2srt');
const ttml2src = <YOUR TTML STRING>;
console.log(ttml2srt(ttml2src));