Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/msgpack/mod.ts>decode

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function decode
import { decode } from "https://deno.land/std@0.194.0/msgpack/mod.ts";

Decode a value from the MessagePack binary format.

Examples

Example 1

import { decode } from "https://deno.land/std@0.194.0/msgpack/decode.ts";

const encoded = Uint8Array.of(1, 2, 3)

console.log(decode(encoded))

Parameters

uint8: Uint8Array