1.1.0 • Published 3 years ago

simple-srt v1.1.0

Weekly downloads
16
License
ISC
Repository
github
Last release
3 years ago

simple-srt

Convert simplified subtitle files to valid .srt file format.

simplified format

02:17
Senator, we're making
our final approach into Coruscant.

02:20 --> 02:22,500
Very good, Lieutenant.

Compared to normal .srt:

  • index numbering is omitted
  • hour can be omitted (good for short videos)
  • endtime can be omitted in which case te caption end time will be shortly before next caption's start time
  • milliseconds can be omitted

NB: Empty line between captions is required!

usage

import * as simpleSrt from 'simple-srt';
const result = simpleSrt.fromString(' // simplified format // ')
1.1.0

3 years ago

1.0.0

3 years ago

0.1.1

3 years ago

0.1.0-beta

3 years ago