https://github.com/yous/basehangul
Human-readable binary encoding, BaseHangul for Ruby
https://github.com/yous/basehangul
basehangul ruby
Last synced: 7 months ago
JSON representation
Human-readable binary encoding, BaseHangul for Ruby
- Host: GitHub
- URL: https://github.com/yous/basehangul
- Owner: yous
- License: mit
- Created: 2014-11-03T13:03:31.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-04-20T11:32:44.000Z (about 10 years ago)
- Last Synced: 2025-07-25T00:29:47.269Z (9 months ago)
- Topics: basehangul, ruby
- Language: Ruby
- Homepage:
- Size: 46.9 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# BaseHangul
[](http://badge.fury.io/rb/basehangul)
[](https://travis-ci.org/yous/basehangul)
[](https://gemnasium.com/yous/basehangul)
[](https://codeclimate.com/github/yous/basehangul)
[](https://coveralls.io/r/yous/basehangul)
[](http://inch-ci.org/github/yous/basehangul)
Human-readable binary encoding, [BaseHangul](https://basehangul.github.io) for Ruby.
## Installation
Add this line to your application's Gemfile:
``` ruby
gem 'basehangul'
```
And then execute:
``` sh
bundle
```
Or install it yourself as:
``` sh
gem install basehangul
```
## Usage
``` ruby
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.
``` sh
basehangul
```
Or pass `basehangul` a file to encode.
``` sh
basehangul binary.txt
```
Run `basehangul` with no arguments to decode BaseHangul string through terminal input.
``` sh
basehangul -D
```
Or pass `basehangul` a file to decode.
``` sh
basehangul -D basehangul.txt
```
For additional command-line options:
``` sh
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](CHANGELOG.md).
## License
Copyright (c) Chayoung You. See [LICENSE.txt](LICENSE.txt) for further details.