node-file-parser by Skelware

API Docs for: 2.2.2
Show:

srt

Module: Parsers

Summary

The srt parser is a subclass of FileParser that is able to read .srt files, provided they adhere to the following conditions:

Each subtitle starts with a unique number that is greater than zero; After each number, on a new line, two timestamps will be included in standard format; The two timestamps will be separated by means of an arrow with any amount of whitespace; The timestamps may or may not be followed by coordinates on the same line; Coordinates, if present, will be in standard format, with any amount of whitespace; After the timestamps, on a new line, content may or may not be added; Any subsequent lines that are not a number will be treated as content.

Item Index

Methods

Methods

Parser

Syntax

Parser

()

Summary