{"_id":"punt","_rev":"2772481","name":"punt","description":"tiny / elegant UDP messaging library","dist-tags":{"latest":"2.3.0"},"maintainers":[{"name":"qard","email":"admin@stephenbelanger.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"time":{"modified":"2022-05-23T09:41:31.000Z","created":"2013-05-15T04:09:08.246Z","2.3.0":"2015-07-22T04:26:38.997Z","2.2.0":"2014-06-13T15:28:00.114Z","2.1.0":"2014-02-26T23:28:34.375Z","2.0.0":"2014-01-08T22:26:26.817Z","1.0.1":"2013-08-24T04:04:01.492Z","1.0.0":"2013-05-15T04:09:08.246Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/visionmedia/punt.git"},"versions":{"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":"qard","email":"admin@stephenbelanger.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"dist":{"shasum":"96de1be8f8cf771278f57c3be9848aefc5f326bc","size":3461,"noattachment":false,"key":"/punt/-/punt-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/punt/download/punt-2.3.0.tgz"},"directories":{},"publish_time":1437539198997,"_hasShrinkwrap":false,"_cnpm_publish_time":1437539198997,"_cnpmcore_publish_time":"2021-12-17T00:32:17.592Z"},"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","size":3291,"noattachment":false,"key":"/punt/-/punt-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/punt/download/punt-2.2.0.tgz"},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"qard","email":"admin@stephenbelanger.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{},"publish_time":1402673280114,"_hasShrinkwrap":false,"_cnpm_publish_time":1402673280114,"_cnpmcore_publish_time":"2021-12-17T00:32:17.781Z"},"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","size":3116,"noattachment":false,"key":"/punt/-/punt-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/punt/download/punt-2.1.0.tgz"},"_from":".","_npmVersion":"1.3.23","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"qard","email":"admin@stephenbelanger.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{},"publish_time":1393457314375,"_hasShrinkwrap":false,"_cnpm_publish_time":1393457314375,"_cnpmcore_publish_time":"2021-12-17T00:32:17.970Z"},"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"},"readmeFilename":"Readme.md","bugs":{"url":"https://github.com/visionmedia/punt/issues"},"homepage":"https://github.com/visionmedia/punt","_id":"punt@2.0.0","dist":{"shasum":"6569637fb50fe71fa28a3477a44ef4d23e03f260","size":3006,"noattachment":false,"key":"/punt/-/punt-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/punt/download/punt-2.0.0.tgz"},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"qard","email":"admin@stephenbelanger.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{},"publish_time":1389219986817,"_hasShrinkwrap":false,"_cnpm_publish_time":1389219986817,"_cnpmcore_publish_time":"2021-12-17T00:32:18.186Z"},"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","readmeFilename":"Readme.md","_id":"punt@1.0.1","dist":{"shasum":"059818a273131b73efa6602fb6a073c6a020f211","size":3306,"noattachment":false,"key":"/punt/-/punt-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/punt/download/punt-1.0.1.tgz"},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"qard","email":"admin@stephenbelanger.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{},"publish_time":1377317041492,"_hasShrinkwrap":false,"_cnpm_publish_time":1377317041492,"_cnpmcore_publish_time":"2021-12-17T00:32:18.420Z"},"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","readmeFilename":"Readme.md","_id":"punt@1.0.0","dist":{"shasum":"4607064f2f8dcea706efe6376ffe94d42747494b","size":3259,"noattachment":false,"key":"/punt/-/punt-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/punt/download/punt-1.0.0.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"qard","email":"admin@stephenbelanger.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{},"publish_time":1368590948246,"_hasShrinkwrap":false,"_cnpm_publish_time":1368590948246,"_cnpmcore_publish_time":"2021-12-17T00:32:18.641Z"}},"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","_attachments":{},"homepage":"https://github.com/visionmedia/punt#readme","bugs":{"url":"https://github.com/visionmedia/punt/issues"},"license":"MIT"}