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

0.0.3Β β€’Β 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!

Package Sidebar

Install

npm i pops-socket-parser

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

4.04 kB

Total Files

4

Last publish

Collaborators

  • vophitruonganh