Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@warren-bank/node-ttml2srt-cli

warren-bank1GPL-2.01.0.3

An extremely lightweight command-line utility to convert a subtitle file from .ttml to .srt format

readme

ttml2srt

An extremely lightweight command-line utility to convert a subtitle file from .ttml to .srt format


Installation (global w/ npm):

npm install --global @warren-bank/node-ttml2srt-cli

Binary (global):

ttml2srt '/path/to/input.ttml' '/path/to/output.srt'

Installation (local w/ wget via github):

mkdir 'workspace'
cd    'workspace'

wget --content-disposition --no-check-certificate 'https://github.com/warren-bank/node-ttml2srt-cli/archive/master.zip'
unzip 'node-ttml2srt-cli-master.zip'
rm -f 'node-ttml2srt-cli-master.zip'

cd 'node-ttml2srt-cli-master'
npm install

Binary (local):

npm start -- '/path/to/input.ttml' '/path/to/output.srt'

Credits:

  • this project merely adds a CLI wrapper to easily access and use the library: ttml2srt