Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abranhe/binary
CLI tool to work with binary numbers written in C
https://github.com/abranhe/binary
binary binary-numbers c c-library cli cli-tool clib clibs
Last synced: 28 days ago
JSON representation
CLI tool to work with binary numbers written in C
- Host: GitHub
- URL: https://github.com/abranhe/binary
- Owner: abranhe
- License: mit
- Created: 2018-11-09T20:06:23.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-25T19:36:53.000Z (almost 6 years ago)
- Last Synced: 2024-05-21T00:39:42.902Z (6 months ago)
- Topics: binary, binary-numbers, c, c-library, cli, cli-tool, clib, clibs
- Language: C
- Homepage: https://p.abranhe.com/binary
- Size: 17.6 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
binary cli: The command line interface to work with binary numbers
In mathematics and digital electronics, a binary number is a number expressed in the **base-2 numeral system** or **binary numeral system**, which uses only two symbols: typically `0` and `1`.
## Installation
*Installing using [Clib](https://github.com/clibs/clib)*
```sh
$ clib install abranhe/binary
```## CLI
*The options of binary*
```
An small library to work with binary numbersUsage:
$ binary
Options:
-is, --is-binary check if a number is binary
--to-decimal convert a binary number to decimal
--to-binary convert a decimal number to binary
-v, --version output version number
-h, --help output usage informationExample:
$ binary --is-binary 10101000
true
$ binary --to-decimal 1011
7
```## Related
- [binary.c][binary]: API for this module written in C.
## Team
|[![Carlos Abraham Logo][abranhe-img]][abranhe]|
| :-: |
| [Carlos Abraham][abranhe] |## License
[MIT][license] License © [Carlos Abraham][abranhe]
[abranhe]: https://github.com/abranhe
[abranhe-img]: https://avatars3.githubusercontent.com/u/21347264?s=50
[license]: https://github.com/abranhe/binary/blob/master/license
[travis-badge]: https://img.shields.io/travis/abranhe/binary.svg
[travis-status]: https://travis-ci.org/abranhe/binary
[binary]: https://github.com/abranhe/binary.c