This library provides a handy set of utility functions for manipulating binary values- such as those ascertained from a Buffer, or a TCP stream. These functions can be split into two categories:
- Type validity checking
- Type conversion
The purpose of this library is to assist with designing or using Binary protocols.
To get started, simply run: npm i binary-utility-functions
at the root of the
project.
From here, import the code into a file. Both ESM and CJS imports are supported.
See:
-
types.md
for details on the integer types that this function supports. -
naming_conventions.md
for documentation on function naming conventions. -
examples.md
for example usages of every function provided by this library.