jfromaniello / cbor-diag-wasm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Returns cbor diagnostic notation from a given cbor in hex string format.

This module is built for node.js and the browser using webassembly and the rust implementation cbor-diag.

Inspired by https://cbor.nemo157.com/ and https://github.com/Nullus157/cbor.nemo157.com

Installation

npm i cbor-diag-wasm --save

Usage

import init, { parse_hex } from 'cbor-diag-wasm';

// this must be called in browser envs
await init();

parse_hex('6568656c6c6f');

License

MIT 2023 - JosĂ© F. Romaniello

About

License:MIT License


Languages

Language:Rust 100.0%