Releases: gsantiago/subtitle.js
Releases · gsantiago/subtitle.js
v4.1.2
v4.1.1
v4.0.1
v4.0.0
- Fixes #6 by introducing the stream interface (
parse
,stringify
andresync
are now stream-based functions) - Add
parseSync
andstringifySync
as synchronous version ofparse
andstringify
- Add
map
andfilter
to manipulate the parse stream - Update the nodes tree so it can support more types than just a cue
- Refactor the internals by creating the Parser and Formatter classes
- Format types are now
"SRT"
and"WebVTT"
instead of"srt"
and"vtt"
v3.0.0
- Rewrite the project with TypeScript
- Fixes #43 and #39
- Update the API to export only these functions:
parse(input: string): Caption[]
stringify(captions: Caption[], options?: { format: 'srt' | 'vtt }): string
resync(captions: Caption[], time: number): Caption[]
parseTimestamp(timestamp: string): number
parseTimestamps(timestamps: string): Timestamp
formatTimestamp(timestamp: number, options?: { format: 'srt' | 'vtt' }): string
parse
supports optional indexes