Skip to content

Getting Started

To install the decoder:

Terminal window
npm i unbikit

To use it:

import { BikDecoder, type BikFrame } from "unbikit";
let stream: ReadableStream;
// ... assign a source to the stream
const decoder = await BikDecoder.open(() => stream);
let frame: BikFrame | null;
while ((frame = await decoder?.getNextFrame())) {
// ... process frame
}