{"_id":"ipv4-peers","_rev":"7-3dc0f48bd61518883d41d7d1f61113ac","name":"ipv4-peers","description":"An abstract-encoding compliant encoder for encoding a list of ipv4 peers to buffers","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"ipv4-peers","version":"1.0.0","description":"An abstract-encoding compliant encoder for encoding a list of ipv4 peers to buffers","main":"index.js","dependencies":{},"devDependencies":{"standard":"^7.1.2","tape":"^4.6.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/ipv4-peers.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/ipv4-peers/issues"},"homepage":"https://github.com/mafintosh/ipv4-peers","gitHead":"1c85a6c2ac9f641ea4d38b334f7bea71d4d5908c","_id":"ipv4-peers@1.0.0","_shasum":"4ac23c5fee5d1988f611ac45ff559d639ac34e97","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.4.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"4ac23c5fee5d1988f611ac45ff559d639ac34e97","tarball":"https://registry.npmjs.org/ipv4-peers/-/ipv4-peers-1.0.0.tgz","integrity":"sha512-twtKnDRMyh0gBv3pAf5r6OPTCQAhLYjuylzYoyFMJ/Y0kIJmqT/TMfs90GbG5BTe7wn3z4iGpoJ9MazW6pXevg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICr/qaeekGAGfNhJO3kz+dAn7atG4Dw39gN5QQgTb1MSAiEA0l6n4AM5HeI3thq7uKTJAWak3Z3WEmIKNxSZKixoO+s="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/ipv4-peers-1.0.0.tgz_1470962360152_0.2790427210275084"},"directories":{}},"1.1.0":{"name":"ipv4-peers","version":"1.1.0","description":"An abstract-encoding compliant encoder for encoding a list of ipv4 peers to buffers","main":"index.js","dependencies":{},"devDependencies":{"standard":"^7.1.2","tape":"^4.6.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/ipv4-peers.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/ipv4-peers/issues"},"homepage":"https://github.com/mafintosh/ipv4-peers","gitHead":"e40c9f9cd7d9f71a23b0c0e922c5819e47b79f00","_id":"ipv4-peers@1.1.0","_shasum":"1f46f1efc2b574eb3cd8f61cbd567661216040fd","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.4.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"1f46f1efc2b574eb3cd8f61cbd567661216040fd","tarball":"https://registry.npmjs.org/ipv4-peers/-/ipv4-peers-1.1.0.tgz","integrity":"sha512-DGwkrCXKyytak5xeyEWqwO0UQ3LSDgEzIyheDbeXQgbfIbuD7c8U0hhOyU6qTdK0SCP+P5koH25q51O3i+MvPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID6AegLpfj3Dk4jO0hQeEacyDmMVHdrMAEv3lj57FHoUAiEA/fMryBGgxbXMm3duUvdXsiPrehHh7XMU7J7tBpQeO8w="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/ipv4-peers-1.1.0.tgz_1473085344423_0.21252116584219038"},"directories":{}},"1.1.1":{"name":"ipv4-peers","version":"1.1.1","description":"An abstract-encoding compliant encoder for encoding a list of ipv4 peers to buffers","main":"index.js","dependencies":{},"devDependencies":{"standard":"^7.1.2","tape":"^4.6.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/ipv4-peers.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/ipv4-peers/issues"},"homepage":"https://github.com/mafintosh/ipv4-peers","gitHead":"ee15ecd007953b1148c883872e94b810a6cc28ba","_id":"ipv4-peers@1.1.1","_shasum":"85ab862a0f5214583e0518763f7e1d775ae24d76","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.4.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"85ab862a0f5214583e0518763f7e1d775ae24d76","tarball":"https://registry.npmjs.org/ipv4-peers/-/ipv4-peers-1.1.1.tgz","integrity":"sha512-HtBxkuFMBUN4gVoktecf13xDLMS4rmHT0kD3iGjnvjpjHe/UGFng/RBI6CUiDb3617iiOsWQAaMM75jI/syV2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDYeUIB3ZE/Zbxs+I4TiiQbcZ3yKXHdoZRySh1eGN4tNAiAICG9YjlERYI19o/My/okcbQycHosYLAJRPI+vTCdrTg=="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/ipv4-peers-1.1.1.tgz_1473174355053_0.7402010192163289"},"directories":{}},"2.0.0":{"name":"ipv4-peers","version":"2.0.0","description":"An abstract-encoding compliant encoder for encoding a list of ipv4 peers to buffers","main":"index.js","dependencies":{},"devDependencies":{"standard":"^7.1.2","tape":"^4.6.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/ipv4-peers.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/ipv4-peers/issues"},"homepage":"https://github.com/mafintosh/ipv4-peers","gitHead":"f5dadecdc90d917ae953d33f41491f1302a6894a","_id":"ipv4-peers@2.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-6ZMWB3JnCWT0gISUkzChcUEkJS6+LpGRU3h10f9Mfc0usVmyIcbcTN9+QPMg29gLOY8WtaKFbM5ME8qNySoh8g==","shasum":"56db3a04c1bbde4b9035d19757821d7b66b3fbb7","tarball":"https://registry.npmjs.org/ipv4-peers/-/ipv4-peers-2.0.0.tgz","fileCount":6,"unpackedSize":6566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdNczCCRA9TVsSAnZWagAAPLMQAJjfAYuSF5ZTATC8abC8\nKZxQ1ndFY+kOIbv2fveRfSdUNw/OSDIZ6rXFE7VeNsh/AvD66raKG7nY/Los\nrCGDYhdnXJdODg5/ZV368lf0ZIGHave0i2CUidHEDqaFTJMx5eRHVNeDITQ9\n8/AGfwE8Ujg0hx28kKOMmf5bl5LjR0yWucqfMO9ZFSWQqjVUY5xJDxDYxvSl\nfxKWLT+suhpEjqSzyGy9p+UGWk7mF2y92QGa1moaRlej3DIxlh9KMIb0NdE+\nuLbgJjGMV6qgcnGQ3xzgXJ9waxJ/Y+dog/SPv6HlyHFgf2Zs2SE+SOa+VHlG\n4wfUu5z8vG7b8m57MNGxJ4IuqV2Wfb0cy+RuIkRTxUZh+AeP1Kd7HvPtTzEc\nNtLWem9L+hRoKzBeiMn59N0E+Y00p73v0h68jBpdtvF7dIrBftD1k9NR1kcJ\n00kEHFPzEwdktlr5wFCuFFEa/1AMBhh1epu+9RgfUnbHcYzyWgSWY9XMSJwm\nkU60uLUMs1N0YFGmnvOhsXd8DSdluQhZBa4aDYAy6BdBXCxTXsFE79WhnBWE\nnrep+Kw2LY1P3sHmMDk736WWfqxa6xL9cHIpAZeu0D4th3E4f0Z6Lrbk2uWJ\ngr85j9haxi+FK5dy82NholPN1SfBlDdifSPfM1vqIghWDxt8xb5VGuEcU+Np\nZ4Ug\r\n=/VJy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGvjWO92SBb6e/B+LZloi79n4ve25nlMkkhSpTUtsst+AiEAmRyRqxKaemI2z/r1rBXxoZ6wB1zSrn0tJPJved9DbHI="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipv4-peers_2.0.0_1563806913892_0.35500706810389193"},"_hasShrinkwrap":false}},"readme":"# ipv4-peers\n\nAn [abstract-encoding](https://github.com/mafintosh/abstract-encoding) compliant encoder for encoding a list of ipv4 peers to buffers.\n\n```\nnpm install ipv4-peers\n```\n\n[![build status](http://img.shields.io/travis/mafintosh/ipv4-peers.svg?style=flat)](http://travis-ci.org/mafintosh/ipv4-peers)\n\n## Usage\n\n``` js\nvar peers = require('ipv4-peers')\n\nvar buf = peers.encode([{\n  host: '127.0.0.1',\n  port: 8080\n}, {\n  host: '127.0.0.1',\n  port: 9090\n}])\n\nconsole.log(buf) // 12 byte buffer\nconsole.log(peers.decode(buf)) // the peer list\n```\n\n## API\n\n#### `var buf = peers.encode(peerList, [buffer], [offset])`\n\nEncode a list of ipv4 peers into a buffer.\n\n#### `var peers = peers.decode(buffer, [offset], [end])`\n\nDecode a buffer into a list of peers.\n\n#### `var length = peers.encodingLength(peerList)`\n\nReturns the amount of bytes needed to encode the peers into a buffer\n\n#### `peers = peers.idLength(idByteLength)`\n\nCreate a new ipv4-peers decoder that encodes/decodes a fixed size peer id in addition to host/port. The peer id is exposed as the `.id` property on a peer object.\n\n## License\n\nMIT\n","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"time":{"modified":"2022-06-19T02:28:47.764Z","created":"2016-08-12T00:39:21.390Z","1.0.0":"2016-08-12T00:39:21.390Z","1.1.0":"2016-09-05T14:22:25.001Z","1.1.1":"2016-09-06T15:05:55.898Z","2.0.0":"2019-07-22T14:48:34.099Z"},"homepage":"https://github.com/mafintosh/ipv4-peers","repository":{"type":"git","url":"git+https://github.com/mafintosh/ipv4-peers.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"bugs":{"url":"https://github.com/mafintosh/ipv4-peers/issues"},"license":"MIT","readmeFilename":"README.md"}