{"_id":"punt","_rev":"20-10e7126be7610c1c2e97c477f86f0841","name":"punt","description":"tiny / elegant UDP messaging library","dist-tags":{"latest":"2.3.0"},"versions":{"1.0.0":{"name":"punt","version":"1.0.0","description":"tiny / elegant UDP messaging library","keywords":["message","messaging","udp"],"devDependencies":{"mocha":"~1.9.0","humanize-number":"0.0.1","commander":"~1.1.1"},"dependencies":{"better-assert":"~1.0.0"},"license":"MIT","_id":"punt@1.0.0","dist":{"shasum":"4607064f2f8dcea706efe6376ffe94d42747494b","tarball":"https://registry.npmjs.org/punt/-/punt-1.0.0.tgz","integrity":"sha512-LafRgruV3+9SF21ebUxHAFqKBC7ivfG8FZ5qR3qwdmKWgaYpJELJAxaiJdeKjEtVW4vKsc8zYCFFF3ZOFymFNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID7D+TTPYntcihiJg2YQU6uYGGCAWN2mscGVnYpKGMUhAiEAxJBFJATXU/mJUnCdmpBvLyqb+XqjMocbD2RdbcXB634="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{}},"1.0.1":{"name":"punt","version":"1.0.1","description":"tiny / elegant UDP messaging library","keywords":["message","messaging","udp"],"devDependencies":{"mocha":"~1.9.0","humanize-number":"0.0.1","better-assert":"~1.0.0","commander":"~1.1.1"},"dependencies":{},"license":"MIT","_id":"punt@1.0.1","dist":{"shasum":"059818a273131b73efa6602fb6a073c6a020f211","tarball":"https://registry.npmjs.org/punt/-/punt-1.0.1.tgz","integrity":"sha512-4yUgq6MXW7Vgutg3mmRpHoHibK91JrKm87aqYKzemxTTbneg4sTjuTxdyA8i9rWDZkND0aIX3CkYMYKrwkAvgQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLmavhbLGNtFh7/nveV1VwG4t0HxYvQRQzh4sexSlwCAIhAP+UbaYUnmYxlMoZaREC1jyfEL0isS1fTkzlH5KGXqkh"}]},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{}},"2.0.0":{"name":"punt","version":"2.0.0","description":"tiny / elegant UDP messaging library","keywords":["message","messaging","udp"],"devDependencies":{"mocha":"~1.9.0","humanize-number":"0.0.1","better-assert":"~1.0.0","commander":"~1.1.1"},"dependencies":{"amp-message":"~0.1.1"},"license":"MIT","repository":{"type":"git","url":"https://github.com/visionmedia/punt.git"},"bugs":{"url":"https://github.com/visionmedia/punt/issues"},"homepage":"https://github.com/visionmedia/punt","_id":"punt@2.0.0","dist":{"shasum":"6569637fb50fe71fa28a3477a44ef4d23e03f260","tarball":"https://registry.npmjs.org/punt/-/punt-2.0.0.tgz","integrity":"sha512-AP70b3gnEXSkRKT62izrtSbWId0xMUOIQeVSN3DF2u49iPibxK41sxM0pTTA9BKRtbnvVCBFO80c9ZUrsSK+Cw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC39ekMFCRXUWdF/O96Ez2B1+E5q9gF9U/bD4bG9noC6AIhAJ8jU7HdpI9gcXtmjz7gOQCFIXCQz3YSZpEtlLRGhrE+"}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}]},"2.1.0":{"name":"punt","version":"2.1.0","description":"tiny / elegant UDP messaging library","keywords":["message","messaging","udp"],"devDependencies":{"mocha":"~1.9.0","humanize-number":"0.0.1","better-assert":"~1.0.0","commander":"~1.1.1"},"dependencies":{"amp-message":"~0.1.1"},"license":"MIT","repository":{"type":"git","url":"https://github.com/visionmedia/punt.git"},"bugs":{"url":"https://github.com/visionmedia/punt/issues"},"homepage":"https://github.com/visionmedia/punt","_id":"punt@2.1.0","dist":{"shasum":"56d7114111b6c2f62b74afb2b7a56de3fa36a359","tarball":"https://registry.npmjs.org/punt/-/punt-2.1.0.tgz","integrity":"sha512-OUEqkISTGupflNl/VZB6i6fg4mbfEoEGEB3xlnfpVRSwSoaofEv8DuohQt6gSrFod+a9DaNj5wYlDojOohH8pQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTGQCa0CX0HyDYhE3nlioHUdy9wzyaX17DVaGPWwkT2wIgfOmm2JYBUPT5lojIesIJxPuQ4Csg+umIPtI/i+6VuHI="}]},"_from":".","_npmVersion":"1.3.23","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}]},"2.2.0":{"name":"punt","version":"2.2.0","description":"tiny / elegant UDP messaging library","keywords":["message","messaging","udp"],"devDependencies":{"mocha":"~1.9.0","humanize-number":"0.0.1","better-assert":"~1.0.0","commander":"~1.1.1"},"dependencies":{"amp-message":"~0.1.1"},"license":"MIT","repository":{"type":"git","url":"https://github.com/visionmedia/punt.git"},"bugs":{"url":"https://github.com/visionmedia/punt/issues"},"homepage":"https://github.com/visionmedia/punt","_id":"punt@2.2.0","dist":{"shasum":"9aaa9b51522fbbd9f2602f3ec6aeee0a46545bad","tarball":"https://registry.npmjs.org/punt/-/punt-2.2.0.tgz","integrity":"sha512-l46/Bako5sbrXOCxMKK9AIm6+6L4KFkKd1MmuwaHuPe1N8rMvVWRNGompxxq68mlfVCWwKrZCqKJFFuQWqncUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJ3UVdVX5Wl1sa90rP5LyLszBasi6KNm2kLSHKkpQX+AIhANkYZ3fuplsZGL/md4wTeXkSxdEfTkQu/EJXV4TK5I+W"}]},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}]},"2.3.0":{"name":"punt","version":"2.3.0","description":"tiny / elegant UDP messaging library","keywords":["message","messaging","udp"],"devDependencies":{"better-assert":"~1.0.0","commander":"~2.8.1","humanize-number":"0.0.2","mocha":"~2.2.5"},"dependencies":{"amp-message":"~0.1.1"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/visionmedia/punt.git"},"scripts":{},"gitHead":"e79265c17db0b7fbbfcfd60e6723ee6b8d718f11","bugs":{"url":"https://github.com/visionmedia/punt/issues"},"homepage":"https://github.com/visionmedia/punt#readme","_id":"punt@2.3.0","_shasum":"96de1be8f8cf771278f57c3be9848aefc5f326bc","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"qard","email":"admin@stephenbelanger.com"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"qard","email":"admin@stephenbelanger.com"}],"dist":{"shasum":"96de1be8f8cf771278f57c3be9848aefc5f326bc","tarball":"https://registry.npmjs.org/punt/-/punt-2.3.0.tgz","integrity":"sha512-lf6txPeYv7SfxCBQBQnNbKVuaKJkIOKXKGpUtZEiF7iYo8YY+z/nhCceh0gFT7VRuBW6Hj/XfBZVihNXXcr5Hg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTpZem8LuWWAU3OMMN7BYFmgrd6BvJgrcqQtCWtWCSNAIhANI22R/9SGQ66F6TKmaaiXRLBnl4syY4Y4skzEr9r7zZ"}]}}},"readme":"\n# Punt\n\n  A small layer on top of node's core __UDP__ module to make fast volatile messaging even simpler.\n  Punt uses the tiny [AMP](https://github.com/visionmedia/node-amp) prototol to serialize buffer, string,\n  and json arguments.\n\n## Installation\n\n```\n$ npm install punt\n```\n\n## Example\n\n  A small in-proc example of a server with three clients:\n\n```js\nvar punt = require('punt');\nvar server = punt.bind('0.0.0.0:5000');\nvar a = punt.connect('0.0.0.0:5000');\nvar b = punt.connect('0.0.0.0:5000');\nvar c = punt.connect('0.0.0.0:5000');\n\nserver.on('message', function(msg){\n  console.log(msg);\n});\n\nsetInterval(function(){\n  a.send({ hello: 'world' });\n}, 150);\n\nsetInterval(function(){\n  b.send('hello world');\n}, 150);\n\nsetInterval(function(){\n  c.send(new Buffer('hello'));\n}, 150);\n```\n\n  yielding:\n\n```\n<Buffer 68 65 6c 6c 6f>\nhello world\n{ hello: 'world' }\n<Buffer 68 65 6c 6c 6f>\nhello world\n{ hello: 'world' }\n...\n```\n## API\n\n### Server(addr)\n\n  Bind to the given `addr`.\n\n### Client(addr)\n\n  Connect to the given `addr`.\n\n### Client#send(...)\n\n  Send one or more arguments a single atomic message. The following\n  types are supported through AMP:\n\n  - strings\n  - buffers\n  - objects (serialized as JSON)\n\n## License\n\n  MIT\n","maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"qard","email":"admin@stephenbelanger.com"}],"time":{"modified":"2022-06-25T01:14:48.970Z","created":"2013-05-15T04:09:04.173Z","1.0.0":"2013-05-15T04:09:08.246Z","1.0.1":"2013-08-24T04:04:01.492Z","2.0.0":"2014-01-08T22:26:26.817Z","2.1.0":"2014-02-26T23:28:34.375Z","2.2.0":"2014-06-13T15:28:00.114Z","2.3.0":"2015-07-22T04:26:38.997Z"},"repository":{"type":"git","url":"git+https://github.com/visionmedia/punt.git"},"homepage":"https://github.com/visionmedia/punt#readme","keywords":["message","messaging","udp"],"bugs":{"url":"https://github.com/visionmedia/punt/issues"},"license":"MIT","readmeFilename":"Readme.md","users":{"gabeio":true}}