str_compressor

Version, currently 0.1.11 version
  • 0.1.1latestJul 8, 2017

github.com/elorest/str_compressor

String Compressor for Crystal Lang

2 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  str_compressor:
    github: elorest/str_compressor
    version: ~> 0.1.1

Then run:

shards install

shard.yml

Crystal
0.22.0
License
MIT
Author
Isaac Sloan
Target
  • str_compressor from src/str_compressor.cr

Dependencies

This version declares no dependencies.

README

Crystal String Compressor

Makes it easy to compress/decompress and string for sending over a network and multiple other uses.

Installation

Add the following to your shards.yml

dependencies:
  str_compressor:
    github: elorest/str_compressor 

Run shards update

Usage

require "str_compressor"

# To use gzip
gzipped_str = Gzip.write("Hello World")
Gzip.read(gzipped_str) # => "Hello World"

# To use flate
flatecompressed_str = Flate.write("Hello World")
Flate.read(flatecompressed_str) # => "Hello World"

Contributing

  1. Fork it ( https://github.com/elorest/str_compressor/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

  • elorest Isaac Sloan - creator, maintainer