Support encrypt and compress message with json format
NodeJS: 12.x.x and above
npm install msgpackio
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;
π€ Truong Anh Vo (@vophitruonganh)
Give a βοΈ if this project helped you!