Skip to content

A small cli converter that converts input to binary literals

Notifications You must be signed in to change notification settings

SoraTenshi/zconv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zconv

A small cli converter that converts input to binary literals

Functionality

  • Prefix detection for better number parsing (or string for that matter)
  • Works with string
  • Basically converts every input to binary literals

Example:

❯❯ ./zconv 0x1337
\x37\x13

❯❯ ./zconv 0b001000100011
\x23\x02

❯❯ ./zconv 0o1337
\xDF\x02

❯❯ ./zconv 1337
\x39\x05

❯❯ ./zconv asdf
\x61\x73\x64\x66

ReadMe:

Subcommand Full command Comment
-h --help Display this help and exit.
-v --version Output version information and exit.
[<str>|<hex>|<dec>|<bin>] The input to be converted.

Installation:

git clone https://github.com/SoraTenshi/zconv \
cd zconv \
git submodule init \
git submodule update --recursive \
zig build \

# And then run with
./zig-out/bin/zconv

About

A small cli converter that converts input to binary literals

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages