@the-/pack

Message pack wrapper for the-components

Usage no npm install needed!

<script type="module">
  import thePack from 'https://cdn.skypack.dev/@the-/pack';
</script>

README

@the-/pack

npm Version

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

See API Guide for more detail

License

This software is released under the MIT License.

Links