#binary-data #data-streaming #javascript #package #stream

binarystream

Binarystream is a simple package designed to simplify streaming of binary data in Javascript, while being written in Rust

8 stable releases

1.2.3 Dec 13, 2023
1.2.2 Dec 12, 2023
1.2.0 Dec 9, 2023
1.1.4 Nov 21, 2023

#7 in #data-streaming

Download history 1/week @ 2024-02-13 9/week @ 2024-02-20 7/week @ 2024-02-27 1/week @ 2024-03-12 1/week @ 2024-03-26 15/week @ 2024-04-02

69 downloads per month

Custom license

3MB
2.5K SLoC

Rust 1.5K SLoC // 0.3% comments JavaScript 1K SLoC // 0.1% comments TypeScript 177 SLoC // 0.8% comments

binarystream

Binarystream is a simple package designed to simplify streaming of binary data in Javascript, while being written in Rust.

Usage

import { BinaryStream } from '@serenityjs/binarystream'

const stream = new BinaryStream()
stream.writeUint8(255)
stream.writeString('Hello World!')

stream.readUint8() // 255
stream.readString() // Hello World!

Documentation

Documentation can be found here

Dependencies

~1.6–8MB
~47K SLoC