@kounadev/unary
v1.0.1
Published
converts any kind of byte array to unary, where a unary string is matched by ```js /^(0{1,2}\ 0+\ {0,1})+$/ ``` - consists of blocks of 0 seperated by spaces in pairs of 2 - the first block of the pair represent which value the pair is (0 -> 1, 00 -> 0) -
Downloads
2
Readme
@kounadev/unary
converts any kind of byte array to unary, where a unary string is matched by
/^(0{1,2}\ 0+\ {0,1})+$/
- consists of blocks of 0 seperated by spaces in pairs of 2
- the first block of the pair represent which value the pair is (0 -> 1, 00 -> 0)
- the second block of the pair represents the count (the value is repeated for)
- the temporary bit array will be converted to a byte array
Usage
Installation
$ npm i -g @kounadev/unary
$ unary --help
or execution with npx
$ npx @kounadev/unary --help
Notes
please read the help for each individual command
$ unary unarify --help
$ unary parse --help