0.3.1 • Published 2 years ago

xdr-js-serialize v0.3.1

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

XDR JS Serialize

CircleCI

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

MIT

Notes

  • The XDR Quad type is currently not supported