π
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
Show your support
Give a