No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
spec
src
.editorconfig
.gitignore
.travis.yml
LICENSE
README.md
shard.yml

README.md

epub

Build Status

A Crystal shards for parsing epub metadata.

Installation

  1. Add the dependency to your shard.yml:
dependencies:
  epub:
    github: gaotongfei/epub
  1. Run shards install

Usage

require "epub"

Parsing Metadata

doc = Epub::Document.new("/path/to/your.epub")
metadata = doc.metadata
metadata["identifier"]  # => "code.google.com.epub-samples.wasteland-basic"
metadata["title"]  # => "The Waste Land"
metadata["language"]  # => "en-US"
metadata["date"]  # => "2011-09-01"
metadata["rights"]  # => "This work is shared with ..."

Contributing

  1. Fork it (https://github.com/gaotongfei/epub/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors