1.0.17 • Published 7 years ago

packets v1.0.17

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

packets

Simple packets implementation to economize memory and network band.

Getting start

const Packets = require('packets');
 
const myAppPackets = new Packets([
  'ping',
  'pong',
]);
 
// Get identifier to ping packet
myAppPackets.get('ping');
 
// Get all keys
myAppPackets.keys();

Build Setup

# install dependencies
npm install

# build for production with minification
npm run build

# start compiled version.
npm run start

# run lint in code
npm run lint