1.0.0 • Published 3 years ago

@picode/binary-reader v1.0.0

Weekly downloads
264
License
MIT
Repository
github
Last release
3 years ago

Binary Reader for JavaScript/TypeScript

npm npm bundle size GitHub Workflow Status

Tool for reading binary data sequentially in JavaScript / TypeScript

Requires DataView.getBigInt64 support for Int64/Uint64

Installation

npm install bin-reader

Usage

import { BinaryReader } from 'bin-reader'

const data = new BinaryReader(uint8Array)

const version = data.readUint32()
const nameLen = data.readUint8()
const name = data.readArrayAsString(nameLen)

Contributing

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.

License

MIT

1.0.0

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago