npm

as-hex
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

AS-Hex

Hex Decoder/Encoder Written For AssemblyScript

About

  • AssemblyScript Compatible
  • Minimal Code
  • Works In Browser And Node
  • No Dependencies

Installation

~ npm install as-hex --save

Usage

Basic Usage

import { encode, decode } from 'as-hex'

const encoded = encode('Hello World 🌎')
//=> 48656c6c4f124a2c

const decoded = decode(encoded)
//==> Hello World 🌎

API

encode(data: string) -->> string

Encode String Into HEX Format

decode(data: string) -->> string

Decode HEX Back Into String

Package Sidebar

Install

npm i as-hex

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

179 kB

Total Files

11

Last publish

Collaborators

  • slicewire-dev
  • jairussw