Skip to main content

Built and signed on GitHub Actions

Strongly typed Binary Data Schemas for Array Buffers. Convenient functions for defining binary data schemas, encoding and decoding using schemas and strongly typed data.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
8 months ago (0.4.0)
variable t.i16

Int16 from -32,768 to 32,767

2 bytes / 16-bit

Examples

Example 1

const schema = t.i16()

Type

<L extends string = string>(label?: L) => Int16<L>

Add Package

deno add jsr:@rametta/array-buffed

Import symbol

import { t } from "@rametta/array-buffed";

---- OR ----

Import directly with a jsr specifier

import { t } from "jsr:@rametta/array-buffed";

Add Package

npx jsr add @rametta/array-buffed

Import symbol

import { t } from "@rametta/array-buffed";

Add Package

yarn dlx jsr add @rametta/array-buffed

Import symbol

import { t } from "@rametta/array-buffed";

Add Package

pnpm dlx jsr add @rametta/array-buffed

Import symbol

import { t } from "@rametta/array-buffed";

Add Package

bunx jsr add @rametta/array-buffed

Import symbol

import { t } from "@rametta/array-buffed";