v0.1.0
A deno binding of servo/bincode
Repository
Current version released
4 years ago
Versions
deno-bincode
A deno binding of servo/bincode (By wasm)
Example
import { decode, encode } from 'https://cdn.jsdelivr.net/gh/juzi5201314/deno-bincode/mod.ts'
const obj = {
a: 1,
b: [2, 3]
}
const encoded = encode(obj)
const decoded = decode(encoded)
console.log(encoded)
console.log(decoded)
Build Wasm
wasm-pack build --target deno
Test
deno test -A https://cdn.jsdelivr.net/gh/juzi5201314/deno-bincode/test.ts