pops-socket-parser
v0.0.3
Published
<h1 align="center">MsgPackIO 👋</h1>
Downloads
3
Maintainers
Readme
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!