Skip to content

Repository files navigation

@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

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

About

No description, website, or topics provided.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages