Skip to main content
Home

Built and signed on GitHub Actions

A simple library to encode and decode hex strings

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
3 months ago (0.1.4)

@quentinadam/hex

JSR NPM CI

A simple library to encode and decode hex strings.

Usage

import * as hex from '@quentinadam/hex';

hex.decode('000102'); // returns Uint8Array([0, 1, 2])

hex.encode(new Uint8Array([0, 1, 2])); // returns '000102'
Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@quentinadam/hex

Import symbol

import * as hex from "@quentinadam/hex";
or

Import directly with a jsr specifier

import * as hex from "jsr:@quentinadam/hex";

Add Package

pnpm i jsr:@quentinadam/hex
or (using pnpm 10.8 or older)
pnpm dlx jsr add @quentinadam/hex

Import symbol

import * as hex from "@quentinadam/hex";

Add Package

yarn add jsr:@quentinadam/hex
or (using Yarn 4.8 or older)
yarn dlx jsr add @quentinadam/hex

Import symbol

import * as hex from "@quentinadam/hex";

Add Package

vlt install jsr:@quentinadam/hex

Import symbol

import * as hex from "@quentinadam/hex";

Add Package

npx jsr add @quentinadam/hex

Import symbol

import * as hex from "@quentinadam/hex";

Add Package

bunx jsr add @quentinadam/hex

Import symbol

import * as hex from "@quentinadam/hex";