Skip to content

maximerety/base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

base

A simple CLI to convert a binary data string representation between bases (hex, base32, base64).

Installation

# Pick a destination
DEST="~/.local/bin"

crystal build --release -o $DEST/base src/base.cr

Usage

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

Development

# Run tests
crystal spec

Contributing

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

About

A simple CLI to convert a binary data string representation between bases (hex, base32, base64)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published