Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
namespace mongo.Bson.hex
import { mongo } from "https://deno.land/x/hex@0.6.5/src/lib/data/deps.ts";
const { hex } = mongo.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.