This is a converter for SRT files to ASS, written in nodeJS.
WARNING : this is an ES Module.
Run npm install -g @almanime/srt-to-ass
to install as a global module (and get the CLI version)
Run yarn add @almanime/srt-to-ass
to install as a module for your project.
As a module here's the method to use it :
Returns a correctly formatted ASS file as a string. You need to provide the contents of the SRT file as the first parameter.
The CLI version is used as follows :
srt-to-ass myfile.srt
It produces an ASS file on stdout.
If you wish to build from source, use yarn build
to get standard JS in the dist
folder.
You can test code with the srt
file included in the test directory :
node dist/index.js test/srt.srt
MIT