as-hex
v1.0.1
Published
HEX encode/decode in AssemblyScript
Downloads
2
Readme
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