subsrt-ts
    Preparing search index...

    Variable parse

    parse: (content: string, options?: ParseOptions) => Caption[]

    Type Declaration

      • (content: string, options?: ParseOptions): Caption[]
      • Parses a subtitle content.

        Parameters

        • content: string

          The subtitle content

        • options: ParseOptions = ...

          The parsing options

        Returns Caption[]

        The parsed captions

        TypeError If the format cannot be determined

        TypeError If the format is not supported

        TypeError If the handler does not support 'parse' op