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

x/hex/src/data/deps.ts>mongo.Bson.hex.decode

An ecosystem delivering practices, philosophy and portability.
Go to Latest
function mongo.Bson.hex.decode
import { mongo } from "https://deno.land/x/hex@0.5.15/src/data/deps.ts";
const { decode } = mongo.Bson.hex;

Decodes src into src.length / 2 bytes. If the input is malformed, an error will be thrown.

Parameters

src: Uint8Array

Returns

Uint8Array