Encode/decode JavaScript datatypes (String, Number, Object) to/from bytes.
A use-case is sending/receiving bytes through WebSockets, which is more efficient than using JSON strings.
npm install --save git+ssh://git@github.com/j8r/js-byte-format.git
See tests for decoder and encoder.
node --unhandled-rejections=strict test
An exit 0 means all tests have passed with success, otherwise an exception will be printed and a exit 1 returned.
Copyright (c) 2020-2021 Julien Reichardt - ISC License