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