@hazae41/base16
TypeScript icon, indicating that this package has built-in type declarations

1.0.17 • Public • Published

Base16

Base16 adapter for WebAssembly and JS implementations

npm i @hazae41/base16

Node Package 📦

Features

Current features

  • 100% TypeScript and ESM
  • No external dependencies

Getting started

Buffer (NodeJS)

import { Base16 } from "@hazae41/base16"

Base16.set(Base16.fromBuffer())

Alocer (WebAssembly)

npm i @hazae41/alocer
import { Base16 } from "@hazae41/base16"

Base16.set(await Base16.fromBufferOrAlocer())

Scure (JavaScript)

npm i @scure/base
import { Base16 } from "@hazae41/base16"

Base16.set(Base16.fromBufferOrScure())

Usage

Direct

const encoded: string = Base16.get().tryEncode(new Uint8Array([1,2,3,4,5])).unwrap()
const decoded: Uint8Array = Base16.get().tryDecode(encoded).unwrap().copyAndDispose()

Package Sidebar

Install

npm i @hazae41/base16

Weekly Downloads

20

Version

1.0.17

License

MIT

Unpacked Size

98.9 kB

Total Files

49

Last publish

Collaborators

  • hazae41