npm i --save byte-o-yob
const yoba = require('byte-o-yob');
let bytesString = yoba.uint_16_t_to_bytes_s(12345);
Converts short int to 2 byte string
Converts short int to 2 byte array of int
Converts int to 4 byte string
Converts int to 4 byte array of int
Converts any string(only byte char allowed) to integer
Converts array of bytes to integer
Converts hex decoded string to common string
Converts common string to hex encoded
Returns array of hex bytes
- Doesn't work with long int.
- No external dependencies