A simple CLI to convert a binary data string representation between bases (hex, base32, base64).
# Pick a destination
DEST="~/.local/bin"
crystal build --release -o $DEST/base src/base.cr
Usage: base [options]
-i, --input-base INPUT_BASE Specify input base in [16, 32, 64]
-o, --output-base OUTPUT_BASE Specify output base in [16, 32, 64]
-p, --padding Specify if output should be padded
-u, --url-safe Specify if output should be url safe
-h, --help Show this message
# Run tests
crystal spec
- Fork it (https://github.com/maximerety/base/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- maximerety - creator and maintainer