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

x/mongo/mod.ts>Bson.hex

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

Port of the Go encoding/hex library.

This module is browser compatible.

Functions

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

Encodes src into src.length * 2 bytes.