@blamnetwork/rsat
v1.0.0
Published
Schema-first Destiny RSAT bitstream encode/decode for TypeScript
Readme
@blamnetwork/rsat
Schema-first Destiny RSAT bitstream encode/decode for TypeScript.
Game-specific TypeDef schemas belong in the consuming app (e.g. web-tiger), not this package.
import { rsat } from "@blamnetwork/rsat";
const ResultHeader = rsat.schema(0x80801a2b, {
status: rsat.i32({ size: 3, bias: 1 }),
value: rsat.i32({ size: 32, bias: 0x80000000 }),
});
const bytes = rsat.encode(ResultHeader, { status: 0, value: 0 });Docs
- Site: https://blam-network.github.io/rsat/
- Local:
npm run docs
Scripts
| Command | Purpose |
| --- | --- |
| npm test | Vitest |
| npm run check / fix | Biome via Ultracite |
| npm run build | ESM + CJS |
| npm run validate | check + test + typecheck + docs:build |
| npm run release | bump version, tag, push (CI publishes) |
License
MIT
