close
Skip to main content

Built and signed on GitHub Actions

Works with
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 Score100%
Downloads210/wk
Publisheda year ago (1.0.3)

Encoding and decoding for the msgpack format

Functions

f
decode(data: Uint8Array): ValueType

Decode a value from the MessagePack binary format.

f
encode(object: ValueType): Uint8Array_

Encode a value to MessagePack binary format.

Interfaces

I

Value map that can be encoded to MessagePack.

Type Aliases

T
ValueType =
number
| bigint
| string
| boolean
| null
| Uint8Array
| readonly ValueType[]
| ValueMap

Value types that can be encoded to MessagePack.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/msgpack

Import symbol

import * as mod from "@std/msgpack";
or

Import directly with a jsr specifier

import * as mod from "jsr:@std/msgpack";