Packets formatter for browser js and node.js
npm install packets> Simple packets implementation to economize memory and network band.
``js
const Packets = require('packets');
const myAppPackets = new Packets([
'ping',
'pong',
]);
// Get identifier to ping packet
myAppPackets.get('ping');
// Get all keys
myAppPackets.keys();
`
` bashinstall dependencies
npm install