Skip to content

Repository files navigation

Base16

日本語のREADMEはこちらです: README.ja.md

Base16 is a library and ES module for web and Deno that provides Base16 encoding and decoding functionality.

Demo

The demo is available at https://code4fukui.github.io/Base16/

Features

  • Base16 encoding and decoding
  • Works with Uint8Array and strings

Usage

import { Base16 } from "https://code4fukui.github.io/Base16/Base16.js";

console.log(Base16.encode(new Uint8Array([1, 2, 0xfe, 0xff])));
console.log(Base16.decode("0102feff"));

console.log(Base16.encode(new TextEncoder().encode("IchigoJam")));
console.log(new TextDecoder().decode(Base16.decode("49636869676f4a616d")));

Test

Run the tests with:

deno test

License

MIT License — see LICENSE.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages