package
Tool for reading binary data sequentially in JavaScript / TypeScript.
npm install @picode/binary-readerGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
6.1 kB
Includes dependencies.
Tool for reading binary data sequentially in JavaScript / TypeScript
Requires DataView.getBigInt64 support for Int64/Uint64
npm install bin-readerimport { BinaryReader } from 'bin-reader'
const data = new BinaryReader(uint8Array)
const version = data.readUint32()
const nameLen = data.readUint8()
const name = data.readArrayAsString(nameLen)Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.