import { encode } from "https://deno.land/std@0.206.0/msgpack/encode.ts";
Encode a value to MessagePack binary format.
Examples
Example 1
Example 1
import { encode } from "https://deno.land/std@0.206.0/msgpack/encode.ts";
const obj = {
str: "deno",
arr: [1, 2, 3],
map: {
foo: "bar"
}
}
console.log(encode(obj))
Parameters
object: ValueType