xdr-js-serialize
v0.3.1
Published
Library that does the (de)serialization between xdr and JavaScript Dicts.
Downloads
25
Readme
XDR JS Serialize
Xdr-js-serialize is a library for facilitating (de)serialization between the XDR format and Javascript Dictionaries.
This repository is best used in tandom with xdr-codegen for anything beyond basic xdr manipulation.
Installation
This library can be added to your project by using npm to install the xdr-js-serialize package.
npm install xdr-js-serialize
Usage
import types from 'xdr-js-serialize'
const string = new types.Str('asdf')
console.log(string.toJSON())
console.log(string.toXDR('hex'))
// console:
// asdf
// 0000000461736466
License
Notes
- The XDR Quad type is currently not supported