This is a language mode for CodeMirror 6 that provides syntax highlighting for Srt files.
The package exports a single function that'll register the mode with a CodeMirror instance:
import {srt} from "codemirror-lang-srt";
srt() // This will register the mode with CodeMirror