日本語のREADMEはこちらです: README.ja.md
Base16 is a library and ES module for web and Deno that provides Base16 encoding and decoding functionality.
The demo is available at https://code4fukui.github.io/Base16/
- Base16 encoding and decoding
- Works with Uint8Array and strings
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")));Run the tests with:
deno test
MIT License — see LICENSE.