@the-/pack
v17.0.0
Published
Message pack wrapper for the-components
Downloads
36
Readme
@the-/pack
Message pack wrapper for the-components
Installation
$ npm install @the-/pack --save
Usage
'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))
API Guide
- module:@the-/pack
- ThePack
See API Guide for more detail
License
This software is released under the MIT License.