Skip to main content
Module

x/mongo/mod.ts>Bson.hex.decode

MongoDB driver for Deno
Extremely Popular
Go to Latest
function Bson.hex.decode
import { Bson } from "https://deno.land/x/mongo@v0.31.1/mod.ts";
const { decode } = Bson.hex;

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

Parameters

src: Uint8Array

Returns

Uint8Array