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(newUint8Array([1,2,0xfe,0xff])));console.log(Base16.decode("0102feff"));console.log(Base16.encode(newTextEncoder().encode("IchigoJam")));console.log(newTextDecoder().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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages