encode(buffer: Uint8Array<ArrayBuffer>): string
Encodes a Uint8Array buffer into a hex string.
buffer: Uint8Array<ArrayBuffer>
The buffer to encode.
The hex encoded string.
A simple library to encode and decode hex strings
encode(buffer: Uint8Array<ArrayBuffer>): string
Encodes a Uint8Array buffer into a hex string.
buffer: Uint8Array<ArrayBuffer>
The buffer to encode.
The hex encoded string.
Add Package
deno add jsr:@quentinadam/hex
Import symbol
import { encode } from "@quentinadam/hex";
Import directly with a jsr specifier
import { encode } from "jsr:@quentinadam/hex";
Add Package
pnpm i jsr:@quentinadam/hex
pnpm dlx jsr add @quentinadam/hex
Import symbol
import { encode } from "@quentinadam/hex";
Add Package
yarn add jsr:@quentinadam/hex
yarn dlx jsr add @quentinadam/hex
Import symbol
import { encode } from "@quentinadam/hex";
Add Package
vlt install jsr:@quentinadam/hex
Import symbol
import { encode } from "@quentinadam/hex";
Add Package
npx jsr add @quentinadam/hex
Import symbol
import { encode } from "@quentinadam/hex";
Add Package
bunx jsr add @quentinadam/hex
Import symbol
import { encode } from "@quentinadam/hex";