ass2esl: Advanced Substation Alpha to Expressive Subtitle Language

ESL is an open-source initiative defining a rich, human-readable subtitle format designed for expressive and dynamic text presentations. It leverages the clarity of HCL (HashiCorp Configuration Language) to provide a comprehensive framework for timed text, intricate styling, complex motion effects, and karaoke.
Usage
Read an ASS file and convert it to ESL:
import convertASStoESL from '@openanime/ass2esl';
import { readFileSync } from 'fs';
const assFile = readFileSync('example.ass', 'utf-8');
const eslContent = convertASStoESL(assFile);
console.log(eslContent);