npm install zser[npm-shield]: https://img.shields.io/npm/v/zser.svg
[npm-link]: https://www.npmjs.com/package/zser
[build-image]: https://secure.travis-ci.org/zcred/zser.svg?branch=master
[build-link]: http://travis-ci.org/zcred/zser
[license-image]: https://img.shields.io/badge/license-MIT-blue.svg
[license-link]: https://github.com/zcred/zser/blob/master/LICENSE.txt
JavaScript-compatible TypeScript implementation of zser: a
security-oriented serialization format with novel authentication properties
based on "Merkleized" data structures.
For more information, see the [toplevel README.md].
[toplevel README.md]: https://github.com/zcred/zser/blob/master/README.md
Have questions? Want to suggest a feature or change?
* [Gitter]: web-based chat about zcred projects including zser
* [Google Group]: join via web or email ([zcred+subscribe@googlegroups.com])
[Gitter]: https://gitter.im/zcred/Lobby
[Google Group]: https://groups.google.com/forum/#!forum/zcred
[zcred+subscribe@googlegroups.com]: mailto:zcred+subscribe@googlegroups.com
zser.js is presently targeting ES2017. This is because we soon plan
on making use of the [TC39 BigInt] type when it becomes available, and want to
make sure users of this library can handle modern ECMAScript versions.
Please make sure your JS runtime is ES2017 compliant, or use a transpiler
like [babel] support older versions of ECMAScript.
[TC39 BigInt]: https://tc39.github.io/proposal-bigint/
[babel]: https://babeljs.io/docs/plugins/preset-es2017/
Via npm:
``bash`
npm install zser
Via Yarn:
`bash`
yarn install zser
Import TJSON into your project with:
`js`
import zser from "zser";
The Zser.parse() method parses a Uint8Array containing a serialized
zser message into a corresponding self-describing object representation.
#### Parameters
* message: The Uint8Array containing a zser message to parse
#### Example
`js``
let message = new Uint8Array([0x15, 0x07, 0x02, 0x03, 0x55]);
Zser.parse(message);
// Object { 1: Object { 24: 42 } }
Bug reports and pull requests are welcome on GitHub at https://github.com/zcred/zser
Copyright (c) 2017 [The Zcred Developers][AUTHORS].
See [LICENSE.txt] for further details.
[AUTHORS]: https://github.com/zcred/zcred/blob/master/AUTHORS.md
[LICENSE.txt]: https://github.com/zcred/zser/blob/master/LICENSE.txt