binarystream.js
v0.2.5
Published
Simple package designed to simplify streaming of binary data in Javascript
Downloads
7
Readme
BinaryStream.js
BinaryStream.js is a simple package designed to simplify streaming of binary data in Javascript. Development of this package is still very early, and contributions are welcomed!
Installing
Installing using npm
npm install binarystream.js
Installing using yarn
yarn add binarystream.js
Installing using bun
bun add binarystream.js
Usage
import { BinaryStream } from 'binarystream.js'
const stream = new BinaryStream()
stream.writeUInt8(255)
stream.writeString('Hello World!')
stream.readUInt8() // 255
stream.readString() // Hello World!