pops-msgpack
TypeScript icon, indicating that this package has built-in type declarations

0.0.1Β β€’Β PublicΒ β€’Β Published

MsgPackIO πŸ‘‹

Support encrypt and compress message with json format

Usage

Environment

NodeJS: 12.x.x and above

Install

npm install msgpackio

Example

const {MsgPackIO} = require("msgpackio");

const msgpack = new MsgPackIO({
	compress: true,
	encrypt: {secret: '<secret_key>'}
});

const data = { message: 'Hello msgpackio' };

const encodeData = msgpack.pack(data) // output Buffer;

const decodeData = msgpack.unpack(encodeData) // output json;

Author

πŸ‘€ Truong Anh Vo (@vophitruonganh)

Show your support

Give a ⭐️ if this project helped you!

/pops-msgpack/

    Package Sidebar

    Install

    npm i pops-msgpack

    Weekly Downloads

    0

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    3.8 kB

    Total Files

    4

    Last publish

    Collaborators

    • vophitruonganh