BaseHangul

Gem Version Build Status Dependency Status Code Climate Coverage Status Inline docs

Human-readable binary encoding, BaseHangul for Ruby.

Installation

Add this line to your application's Gemfile:

gem 'basehangul'

And then execute:

bundle

Or install it yourself as:

gem install basehangul

Usage

BaseHangul.encode('This is an encoded string')
# => '넥라똔먈늴멥갯놓궂뗐밸뮤뉴뗐뀄굡덜멂똑뚤'

BaseHangul.decode('넥라똔먈늴멥갯놓궂뗐밸뮤뉴뗐뀄굡덜멂똑뚤')
# => 'This is an encoded string'

Run basehangul with no arguments to encode binary through terminal input.

basehangul

Or pass basehangul a file to encode.

basehangul binary.txt

Run basehangul with no arguments to decode BaseHangul string through terminal input.

basehangul -D

Or pass basehangul a file to decode.

basehangul -D basehangul.txt

For additional command-line options:

basehangul -h
Command flag Description
-D, --decode Decode the input.
-h, --help Print this message.
-v, --version Print version.

Contributing

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

Changelog

See CHANGELOG.md.

License

Copyright (c) ChaYoung You. See LICENSE.txt for further details.