https://github.com/ire4ever1190/conv
CLI tool for converting numbers
https://github.com/ire4ever1190/conv
Last synced: 6 months ago
JSON representation
CLI tool for converting numbers
- Host: GitHub
- URL: https://github.com/ire4ever1190/conv
- Owner: ire4ever1190
- License: mit
- Created: 2022-03-05T03:07:41.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-30T00:22:10.000Z (over 3 years ago)
- Last Synced: 2025-02-07T17:45:58.988Z (8 months ago)
- Language: Nim
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
Simple CLI ultility for converting between different number formats (Currently supports integer/hex/binary).
Mainly made because I kept needing to use random websites when converting numbers and it was getting annoying### Installation
```
nimble install https://github.com/ire4ever1190/conv
```##### Basic usage:
```console
$ conv
```
Where is any of the supported formats and is the number to convert##### Supported Formats:
- Binary: 'b'
- Integer: 'i'
- Hex: 'x'##### Other Options:
- `--length`, `-l`: Length to zero pad output (Only valid for non integer formats)
- `--help`, `-h`: Print this msg
- `--version`, `-v`: Print version##### Examples:
```console
$ conv b0100101 i
37$ conv i456 x
1C9$ conv --length=3 i456 x
1C9
```