Parses and compiles ASS/SSA subtitle format into an easy-to-use data structure. Current stable version: 0.1.16. Released as needed with minor fixes and enhancements. Key differentiators: provides both low-level parse/stringify and high-level compile/decompile with validation, tag merging, drawing transformation, and default style support. Ships TypeScript types. Alternatives require more manual parsing or lack validation.
npm install ass-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates parsing, compiling with options, and round-tripping ASS text using parse, compile, stringify, and decompile.
Use ESM imports: import { parse } from 'ass-compiler'.Ensure \r appears at the start of override tags in Dialogue text.
Remove duplicate \pos/\move tags; keep only the first.
Upgrade to v0.1.11+ which fixes rounding via #16.
Provide a defaultStyle option including Fontname, or add a 'Default' style in the ASS file.
Ensure all brackets are balanced; update to v0.1.15+ which better handles mismatched brackets.
Switch to ESM imports (import { parse } from 'ass-compiler') or downgrade to v0.1.12.No dependency data recorded yet.