0.0.1 ā¢ Published 3 years ago
pops-msgpack v0.0.1
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](https://github.com/vophitruonganh))
## Show your support
Give a āļø if this project helped you!
0.0.1
3 years ago