srt

Version, currently 0.1.01 version
  • 0.1.0latestApr 3, 2016

github.com/marceloboeira/srt.cr

Generate and Parse SRT files

6 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  srt:
    github: marceloboeira/srt.cr
    version: ~> 0.1.0

Then run:

shards install

shard.yml

Crystal
no constraint declared
License
MIT
Author
Marcelo Boeira <me@marceloboeira.com>

Dependencies

Development Dependencies

  • spec2~> 0.8.0github: waterlink/spec2.crdev

README

# srt.cr [![Build Status](https://travis-ci.org/marceloboeira/srt.cr.svg?branch=master)](https://travis-ci.org/marceloboeira/srt.cr)
> Generate and Parse SRT files

## Installation

Add this to your application's `shard.yml`:

```yaml
dependencies:
  srt:
    github: marceloboeira/srt.cr
```

## Usage

### Parsing

```crystal
require "str"

file = STR::File.parse(File.read("lost-s01e01-pilot.srt"))

p file.lines.first.text
# =>  Help me!
```