Message pack wrapper for the-components
npm install @the-/pack@the-/pack
==========
[![npm Version][bd_npm_shield_url]][bd_npm_url]
[bd_repo_url]: https://github.com/the-labo/the
[bd_npm_url]: http://www.npmjs.org/package/@the-/pack
[bd_npm_shield_url]: http://img.shields.io/npm/v/@the-/pack.svg?style=flat
Message pack wrapper for the-components
Installation
-----
``bash`
$ npm install @the-/pack --save
Usage
---------
`javascript
'use strict'
const { ThePack } = require('@the-/pack')
async function tryExample() {
const { decode, encode } = new ThePack()
const encoded = encode({ foo: 'bar' })
const decoded = decode(encoded)
console.log('decoded', decoded)
}
tryExample().catch((err) => console.error(err))
``
- module:@the-/pack
- .create(args)
- .default
- .ThePack
- ThePack
- #bind()
- #decode(encoded)
- #encode(data)
See API Guide for more detail
License
-------
This software is released under the MIT License.
Links
------
+ [THE Labo][the_labo_url]
[the_labo_url]: https://github.com/the-labo