{"_id":"udp-request","_rev":"14-067becfead1f1f2036878361eacf70c3","name":"udp-request","description":"Small module for making requests/responses over UDP","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"udp-request","version":"1.0.0","description":"WIP - nothing to see here","main":"index.js","dependencies":{"inherits":"^2.0.3"},"devDependencies":{"standard":"^8.1.0","tape":"^4.6.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/udp-request.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/udp-request/issues"},"homepage":"https://github.com/mafintosh/udp-request","gitHead":"c16e3d5a09799019c474ef3f75a3aca7902ee038","_id":"udp-request@1.0.0","_shasum":"45a2e954a2ee718983b0ad97343870464859ad52","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.4.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"45a2e954a2ee718983b0ad97343870464859ad52","tarball":"https://registry.npmjs.org/udp-request/-/udp-request-1.0.0.tgz","integrity":"sha512-bO5lZao65u4Sni7kMLWleoxrNjnQSUPaSIZ/fhUVa/zuMWK6RYwF6SVlO4E8s7iU3bWdlDmZNvH/RSwFpk52zA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDGg4jZxCo0UslZX2ImOgR7WTBR8s1F2VGgGKKaq0gzjAiAdcjiEGqvlgT94253NUxrekRlPG0E5PXU6YoLOrHOm/g=="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/udp-request-1.0.0.tgz_1474459813911_0.21431167772971094"},"directories":{}},"1.0.1":{"name":"udp-request","version":"1.0.1","description":"Small module for making requests/responses over UDP","main":"index.js","dependencies":{"inherits":"^2.0.3"},"devDependencies":{"standard":"^8.1.0","tape":"^4.6.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/udp-request.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/udp-request/issues"},"homepage":"https://github.com/mafintosh/udp-request","gitHead":"9e9d73f142eadcc24ea3aca80a65b0e7d4d2dec9","_id":"udp-request@1.0.1","_shasum":"67e8db8aaffdc1b30507c7ec40d9b08ff32b2b04","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.4.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"67e8db8aaffdc1b30507c7ec40d9b08ff32b2b04","tarball":"https://registry.npmjs.org/udp-request/-/udp-request-1.0.1.tgz","integrity":"sha512-iV7zcPvJLfsBWF8TQNTceS5u98YlXVgZoQR7FNmlmTotxWfaskw4duWjipqefgSuoxCDlx9hY/qStSdUYqXaRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCh1XbEOhYxE2S7+IzVGMVmHIpWs3dwYErxR52MO17UjQIhALMax0fYVeZuJ+GVNpMDZkly2bIJ3L5wE7LJsEqKIR+o"}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/udp-request-1.0.1.tgz_1474463318931_0.49583437759429216"},"directories":{}},"1.1.0":{"name":"udp-request","version":"1.1.0","description":"Small module for making requests/responses over UDP","main":"index.js","dependencies":{"inherits":"^2.0.3","passthrough-encoding":"^1.2.0"},"devDependencies":{"standard":"^8.1.0","tape":"^4.6.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/udp-request.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/udp-request/issues"},"homepage":"https://github.com/mafintosh/udp-request","gitHead":"87e77d8ea7a0fb903d404dc2051f202344379b49","_id":"udp-request@1.1.0","_shasum":"46fd595b9f10000fbdf485f66bf63ff994064479","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.4.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"46fd595b9f10000fbdf485f66bf63ff994064479","tarball":"https://registry.npmjs.org/udp-request/-/udp-request-1.1.0.tgz","integrity":"sha512-COvhanoxJQ35U1+vmMf510UuYO/Zv0HT7O+t9p/+zfGQnzsamOzEYVmy72ondZlm1+vRgbtrEjsadp3uQ865ow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChN3pp+9Z4LKUGDw2c2TBGIV8i2KEfb8AWbzGV+VhlsAIgbOwurJhxu3MYlJkaSzt/xN93yDv53Zhowg5+vp7C8nU="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/udp-request-1.1.0.tgz_1474547582942_0.2604897196870297"},"directories":{}},"1.1.1":{"name":"udp-request","version":"1.1.1","description":"Small module for making requests/responses over UDP","main":"index.js","dependencies":{"inherits":"^2.0.3","passthrough-encoding":"^1.2.0"},"devDependencies":{"standard":"^8.1.0","tape":"^4.6.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/udp-request.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/udp-request/issues"},"homepage":"https://github.com/mafintosh/udp-request","gitHead":"312ec22abb9807224b09390e81e116ec6636ab88","_id":"udp-request@1.1.1","_shasum":"f13a49f3ccb612bcb314934c09c2ad46d4a6f063","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.4.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"f13a49f3ccb612bcb314934c09c2ad46d4a6f063","tarball":"https://registry.npmjs.org/udp-request/-/udp-request-1.1.1.tgz","integrity":"sha512-nbGpRzd2/eQeT/M/TutIyaEH3Q2PHFIIOPZAJL72g1S61lMS+GaYx8WIgYAu6KffLczxVQq27WlzfNuA8yoJIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGdUzJNcGG3JfdQUT+GVhnLPZ/e/qGJpOWYgBhf6TrIBAiEApkV0k7ibM1lLSrHvxt4O0L9tqSj/bkebDGKhljRjJ7c="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/udp-request-1.1.1.tgz_1474637838511_0.6328057427890599"},"directories":{}},"1.1.2":{"name":"udp-request","version":"1.1.2","description":"Small module for making requests/responses over UDP","main":"index.js","dependencies":{"inherits":"^2.0.3","passthrough-encoding":"^1.2.0"},"devDependencies":{"standard":"^8.1.0","tape":"^4.6.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/udp-request.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/udp-request/issues"},"homepage":"https://github.com/mafintosh/udp-request","gitHead":"25710c62445536d130dd85e76d2cb685be90202f","_id":"udp-request@1.1.2","_shasum":"b2ff829fad3805f3734e9f2fc68be7efd9880dbe","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"b2ff829fad3805f3734e9f2fc68be7efd9880dbe","tarball":"https://registry.npmjs.org/udp-request/-/udp-request-1.1.2.tgz","integrity":"sha512-3oN4dXWgDANwNQHYT0AUZ2A39Bj/VRN0Uds8g5ermUoM4tRY+obOCkCEvJm9TtXNfnTQuorXjv1nH+32pq7WIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA2q7Tw8wqQoQLQyNH1povDVk1n+M2DGSTdyeoe34Z9KAiEAw8Bf4C665MgPLpKk67Yspink+I/Oc3OefJyj+Fq7h4o="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/udp-request-1.1.2.tgz_1475346037545_0.6642272942699492"},"directories":{}},"1.2.0":{"name":"udp-request","version":"1.2.0","description":"Small module for making requests/responses over UDP","main":"index.js","dependencies":{"inherits":"^2.0.3","passthrough-encoding":"^1.2.0"},"devDependencies":{"standard":"^8.1.0","tape":"^4.6.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/udp-request.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/udp-request/issues"},"homepage":"https://github.com/mafintosh/udp-request","gitHead":"a136c4aee569e293493a7e381ecd18a70d064667","_id":"udp-request@1.2.0","_shasum":"eb7e8f0808c7a770bca1928ef121785a0a1c3285","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"eb7e8f0808c7a770bca1928ef121785a0a1c3285","tarball":"https://registry.npmjs.org/udp-request/-/udp-request-1.2.0.tgz","integrity":"sha512-q9wR3+82TtBXtn0yztKmDKjpjVxqUNhId9Ml+W4xMGglPe6r6E4SgodWh6sfc7ofYnA6mhGRnVYjXLtefA3gPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFzD45DyIGwMTArWktZTzIj3OWIEpp2PNMTZzcM3feniAiEA0L0BTr6BivNlsPO23UvT/OnizCwVcdAAXb4Zu1GM4aw="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/udp-request-1.2.0.tgz_1477394652309_0.9989165689330548"},"directories":{}},"1.3.0":{"name":"udp-request","version":"1.3.0","description":"Small module for making requests/responses over UDP","main":"index.js","dependencies":{"inherits":"^2.0.3","passthrough-encoding":"^1.2.0"},"devDependencies":{"standard":"^8.1.0","tape":"^4.6.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/udp-request.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/udp-request/issues"},"homepage":"https://github.com/mafintosh/udp-request","gitHead":"2945d59bef7371e2bdeabccb3a6618c97fcf479c","_id":"udp-request@1.3.0","_shasum":"bacdd3e57f1402f9fda144407f66902a1ae45b61","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"bacdd3e57f1402f9fda144407f66902a1ae45b61","tarball":"https://registry.npmjs.org/udp-request/-/udp-request-1.3.0.tgz","integrity":"sha512-oVOkxamE3qXtK2WrXSWRYMMUMBZvei3LOjmhCp6B0W11lvNltxmDyDdfyep7JCh6iZZbcE/3Pm9g8DA6ve1MWQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDQ5xJVQMP0WvE0FELO/RT+PlTepdwzocgUYSBTEBTwyAiBN8KyMIx1vtZR2roi6kz9ai+T4D8Agplj3PX9kw2Tsmg=="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/udp-request-1.3.0.tgz_1477407343181_0.33505248418077826"},"directories":{}},"1.3.1":{"name":"udp-request","version":"1.3.1","description":"Small module for making requests/responses over UDP","main":"index.js","dependencies":{"inherits":"^2.0.3","passthrough-encoding":"^1.2.0"},"devDependencies":{"standard":"^8.1.0","tape":"^4.6.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/udp-request.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/udp-request/issues"},"homepage":"https://github.com/mafintosh/udp-request","gitHead":"db61560601a312a95b55a5eb8a52549a91b1807d","_id":"udp-request@1.3.1","_shasum":"16cc3792a49dbc8edee16a470ab654dca8b7524c","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"16cc3792a49dbc8edee16a470ab654dca8b7524c","tarball":"https://registry.npmjs.org/udp-request/-/udp-request-1.3.1.tgz","integrity":"sha512-FiagB7qWhQ4ESuH4Qd+L/zpCZbdNJ39qJJqIHlQZqT3DzLvzJOjGyYxtSiCViccTCB4ooXa3pbMrAziTvuliPg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC8gj55yNoe6htRGg3PDoarBkUdplnMwxsOQ/vaLHW16AiEA83VhahpRsvXS6gxuJgiLIwxwz/8dzOFo22nFoEERD/g="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/udp-request-1.3.1.tgz_1477499452042_0.4440304869785905"},"directories":{}},"1.4.0":{"name":"udp-request","version":"1.4.0","description":"Small module for making requests/responses over UDP","main":"index.js","dependencies":{"inherits":"^2.0.3","passthrough-encoding":"^1.2.0"},"devDependencies":{"standard":"^8.1.0","tape":"^4.6.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/udp-request.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/udp-request/issues"},"homepage":"https://github.com/mafintosh/udp-request","gitHead":"18430cc54ee86df196ca9cd51f8a830040de8739","_id":"udp-request@1.4.0","_shasum":"b878d7bc6bb135d3cdfb39a46c7e231f943dd34d","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"b878d7bc6bb135d3cdfb39a46c7e231f943dd34d","tarball":"https://registry.npmjs.org/udp-request/-/udp-request-1.4.0.tgz","integrity":"sha512-Gp2EQowDH2GdSEIDP6Y4c9NrjowAwhGBPWgfpRgxP5bYfgKlgs6BUXkq7MvN3lk34Nn9EjpqMq+05BHYs9j6eQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGSMuDOSCoAu2TajlaxQLnnrcRwutJlQjkxVV+UhGbPEAiAIwQajs067NhvPyoWwdA0BkB6WgtVfqjngFZEhYhtj3w=="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/udp-request-1.4.0.tgz_1477507140318_0.3854451607912779"},"directories":{}},"1.5.0":{"name":"udp-request","version":"1.5.0","description":"Small module for making requests/responses over UDP","main":"index.js","dependencies":{"inherits":"^2.0.3","passthrough-encoding":"^1.2.0"},"devDependencies":{"standard":"^8.1.0","tape":"^4.6.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/udp-request.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/udp-request/issues"},"homepage":"https://github.com/mafintosh/udp-request","gitHead":"07503583c401abc5bd4750ecc96c318801de9ea5","_id":"udp-request@1.5.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"integrity":"sha512-DAeGTyZbZKQ5Q+suwr73Blq0qjkZiDPnQCNRshspOReJaLWr6sv41sKmkk1yQynUPyuEZy/LIAzXpbvxVXJ2Pg==","shasum":"98f6c22d1f445ce7e4b64c7619f16bc23705a0c2","tarball":"https://registry.npmjs.org/udp-request/-/udp-request-1.5.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBBS5HeYDz8mCdITicFN6LBfU7ygN+wZoYmOxwN2P88QIgdGDPkSozH0S3LRQOl68YV7gVtMSI1evXiqXd3kZQ/6c="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/udp-request-1.5.0.tgz_1512240979424_0.16860452597029507"},"directories":{}},"2.0.0":{"name":"udp-request","version":"2.0.0","description":"Small module for making requests/responses over UDP","main":"index.js","dependencies":{"passthrough-encoding":"^1.2.0"},"devDependencies":{"standard":"^12.0.1","tape":"^4.9.1"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/udp-request.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/udp-request/issues"},"homepage":"https://github.com/mafintosh/udp-request","gitHead":"78ebc1d67bcc7dc8e8d5d8e724d260fd8e9bb8d6","_id":"udp-request@2.0.0","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"integrity":"sha512-v4LagfW0q9FWsli5W+FdKzo+X+6UMHhi00Bb6NQm7QSkr/SFUP4fNnpY5BT64Gcrnv4h7XnWKqTu80no/kNcyw==","shasum":"809cbd3cedb12e88ecaa56e89660d7e4d1838185","tarball":"https://registry.npmjs.org/udp-request/-/udp-request-2.0.0.tgz","fileCount":7,"unpackedSize":12608,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJboY4bCRA9TVsSAnZWagAAZd8P/04nuewFLu3fXFn0Ykye\nVJPJjunE8BLJSGdLCArBOszlYwvjQ09XkgGXGHKYTc+xIC/OY3/9wIHIS4oQ\nuUzIV/FktReqbdKl63cHJ66VnUiMEP+N4pXC2b+60J+NcGe8cN174/7aCwcx\nMlujBwuDtQLpjozlorOg8qt/T4MbrROObUxrtI9FcxEBCG1aP5oE61cDvBIe\njiHGQDhWwj4vLHNLyi83H6oLsL7gvCMw7VOfF03cvW9Ew3BsUcbwlNY0FlOT\nSDpjZNEp2qHu8FZedMIOEvULgARY5WeaxocrlKZqlyVdyZI5sz2XqVxesbYj\n6gR2Lj7GTbC3exgOjsrzCTRakZCQowUIDkpt+tbZFHTQJoCriamEvlVcYeCU\nBd5QLY6aAs9ovElezGNbX+KA2c5Rj2fzl3mgh50Z3gcjX0QAmyBO/7+sX7KF\n5CB940lF7ZqB+8Di6DgbaopqnAqXuGL3mlSRLec8+mnpxsQnW+NbssV40SJL\ni8MaHH1Z7D3LpZTqx9IQW9LS0VRrlewThdpeYM4Kss/ZYQk7nJ360EYGGaR/\nIPSF2Ak+92gGWM+YD7S4CT3Rhny1e6PwsKOwM6rQksGYkBI9KPF4mYDYjYZS\nK/P0y7lkm5n2/gXbnQHx+wzyGh//4eiz48Ofteqs1/pvpVWLYFVNzDuPkRgb\niBMi\r\n=HwaA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHVWC+EMz0M4HnhNkIKsItiZLl9qPQWE/wOOQy4Fa7tXAiEAi/4v/cqloqhgHxq3DjJRzWY9s6NOUsHWWhA1n4Kb9To="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/udp-request_2.0.0_1537314330261_0.7376458963706833"},"_hasShrinkwrap":false}},"readme":"# udp-request\n\nSmall module for making requests/responses over UDP\n\n```\nnpm install udp-request\n```\n\n[![build status](http://img.shields.io/travis/mafintosh/udp-request.svg?style=flat)](http://travis-ci.org/mafintosh/udp-request)\n\n## Usage\n\n``` js\nvar udp = require('udp-request')\nvar socket = udp()\n\nsocket.on('request', function (request, peer) {\n  console.log('request:', request.toString())\n  socket.response('echo: ' + request.toString(), peer)\n})\n\nsocket.listen(10000, function () {\n  socket.request('hello', {port: 10000, host: '127.0.0.1'}, function (err, response) {\n    console.log('response', response.toString())\n    socket.destroy()\n  })\n})\n```\n\n## API\n\n#### `var socket = udp([options])`\n\nCreate a new request/response udp socket. Options include:\n\n``` js\n{\n  timeout: 1000, // request timeout\n  socket: udpSocket, // supply your own udp socket\n  retry: true, // retry requests if they time out. defaults to false\n  requestEncoding: someEncoder, // abstract-encoding compliant encoder\n  responseEncoding: someEncoder, // abstract-encoding compliant encoder\n}\n```\n\n#### `var id = socket.request(buffer, peer, [options], [callback])`\n\nSend a new request. `buffer` is the request payload and `peer` should be an object containing `{port, host}`.\nWhen the response arrives (or the request times out) the callback is called with the following arguments\n\n``` js\ncallback(error, response, peer)\n```\n\nOptions include:\n\n``` js\n{\n  retry: true\n}\n```\n\n#### `socket.response(buffer, peer)`\n\nSend a response back to a request.\n\n#### `socket.cancel(id)`\n\nCancels a pending request.\n\n#### `socket.on('request', buffer, peer)`\n\nEmitted when a new request arrives. Call the above `.response` with the same peer object to send a response back to this request.\n\n#### `socket.on('response', buffer, peer)`\n\nEmitted when any response arrives.\n\n#### `socket.on('error', err)`\n\nEmitted when a critical error happens.\n\n#### `socket.on('warning', err)`\n\nEmitted when a non critical error happens (you usually do not need to listen for this).\n\n#### `socket.on('close')`\n\nEmitted when the request socket closes (after it is destroyed).\n\n#### `socket.on('listening')`\n\nEmitted when the socket is listening.\n\n#### `socket.listen([port], [callback])`\n\nListen on a specific port. If port is omitted a random one will be used.\n\n#### `socket.destroy()`\n\nCompletely destroy the request socket (cancels all pending requests).\n\n## License\n\nMIT\n","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"time":{"modified":"2022-06-28T02:57:07.521Z","created":"2016-09-21T12:10:15.881Z","1.0.0":"2016-09-21T12:10:15.881Z","1.0.1":"2016-09-21T13:08:41.316Z","1.1.0":"2016-09-22T12:33:03.662Z","1.1.1":"2016-09-23T13:37:19.546Z","1.1.2":"2016-10-01T18:20:39.126Z","1.2.0":"2016-10-25T11:24:14.382Z","1.3.0":"2016-10-25T14:55:45.408Z","1.3.1":"2016-10-26T16:30:54.332Z","1.4.0":"2016-10-26T18:39:02.526Z","1.5.0":"2017-12-02T18:56:19.537Z","2.0.0":"2018-09-18T23:45:30.353Z"},"homepage":"https://github.com/mafintosh/udp-request","repository":{"type":"git","url":"git+https://github.com/mafintosh/udp-request.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"bugs":{"url":"https://github.com/mafintosh/udp-request/issues"},"license":"MIT","readmeFilename":"README.md"}