Caution: in alpha. Import encode
and decode
. Convert a typed array to/from "two-separated binary". See demo.
Supported binary formats:
- For 8-bit integers, use
Uint8Array
as input.
Install with a package manager:
pnpm add twoby
Or, run npm install
or yarn add
, based on your preference.
The published copy lives on GitHub. Make any pull request against the main branch.
I build and test with pnpm. I've tried npm
, yarn@1
, yarn@berry
, but The uvu
testing library currently recommendeds pnpm
.