binary-json

1.0.0 • Public • Published

Binary json

npm i binary-json
const binaryJson = require('binary-json');
// Example data
const data = { name: 'Sivabharathy', age: 28, company: 'Sparkout Tech Solutions Pvt Ltd' };

// Serialize data using binary json
const buffer = binaryJson.encode(data);

console.log('MessagePack encoded:', buffer);

// Deserialize binary into data
const decodedData = binaryJson.decode(buffer);

console.log('MessagePack decoded:', decodedData);

Package Sidebar

Install

npm i binary-json

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

52 kB

Total Files

3

Last publish

Collaborators

  • gotocva