{"_id":"@leichtgewicht/ip-codec","_rev":"7-0738849e0e9a73cdd848bcbacbfa1def","name":"@leichtgewicht/ip-codec","dist-tags":{"latest":"2.0.5"},"versions":{"1.0.0":{"name":"@leichtgewicht/ip-codec","version":"1.0.0","description":"Small package to encode or decode IP addresses from buffers to strings.","main":"index.js","types":"types","scripts":{"lint":"standard && dtslint --localTs node_modules/typescript/lib types","test":"fresh-tape test.js","test-cov":"c8 npm run test"},"repository":{"type":"git","url":"git+https://github.com/martinheidegger/ip-codec.git"},"keywords":["ip","ipv4","ipv6","codec","codecs","buffer","conversion"],"author":{"name":"Martin Heidegger"},"license":"MIT","bugs":{"url":"https://github.com/martinheidegger/ip-codec/issues"},"homepage":"https://github.com/martinheidegger/ip-codec#readme","devDependencies":{"c8":"^7.7.3","dtslint":"^4.1.1","fresh-tape":"^5.2.4","standard":"^16.0.3","typescript":"^4.3.5"},"gitHead":"fa42bb9f99af5564b8963a43e81debdc0773e34c","_id":"@leichtgewicht/ip-codec@1.0.0","_nodeVersion":"16.4.0","_npmVersion":"7.18.1","dist":{"integrity":"sha512-4w160F8VQBHwu4V5Viv/694JqBeeDrfiwn8evX+Xu5XkZkGNaMNHJar0rwGIOSFwXYsIwDtSnpATmmpEEOaWCA==","shasum":"3b153fdbfb2d7ada087ff9ad9bcc045d9deabf5e","tarball":"https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-1.0.0.tgz","fileCount":11,"unpackedSize":12109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3Vx6CRA9TVsSAnZWagAAmesP/Ar/Kob22capvnBU54Cr\nOpE0lhQ2nHpeoPshU9RV98jxOtezZDTSsxPfKeGE3A0rPg2f5TWtQoeo9gMe\nxZfgsovUhl58/lUud7hPbmqPkDJWDamC4lHgc0eY2Baxb5FbN3sLRKBdAZHJ\nUDNJ3Yjtu5DGhsuP34ez2wZslIf6afktizyZI4nWADkWh8Aj0NArbd86nVdJ\nrATURSQ9VdvPVYArdS3/Eydwy/tBmaoKtRfLRO7AqFfWFtFaBsLeJ7sHo+Uv\nYj1Old2a36hcvpxpUJOYP4DZS+heCJp6ZEWx8wO5ak8MwCB+IW1x2gllU50d\n/MhWZZbwyceipsoyAC+S7url7sSGW8Y72NN51l2xxL6ads9eS8QQ/H7QZq6T\nhAfFrLjPeU89HZi7TtqjC9G/Jq4giwTjCesAGZi1a+3NQF7IJB3uwha605HN\nCS0loKmTdtOzQ1WNxRK/b/olwdxWhQBEQQkfNccUdWO1d0MtEMTbqVPN8KJm\nTghswWdrBfNhJdZCGFAsjbfRxz676tyoS1QSCpPco259HLrbRXYSxe5jixKL\nqQk3yX4alJaJ0aFBweMLEFVbD34wUANlGRNJvsl7V/4DCoVbuv3Oe/JSS9+C\nAiyb1fKMvYyjrGz3BshYZUQ7QREeVmhJNzzj8rbi8IeXLV0yEVJyKMheORzW\nCyqX\r\n=XOd4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFOJ/Lg9Ja76NG2z2qM0csCTINV1q9KUUnHC/+xLKC/EAiEAxTim+hB0WG/eW+HBszcz5qc0ZVcYe7kSYuFot/C9QqU="}]},"_npmUser":{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"},"directories":{},"maintainers":[{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ip-codec_1.0.0_1625119866106_0.5899376372888863"},"_hasShrinkwrap":false},"2.0.0":{"name":"@leichtgewicht/ip-codec","version":"2.0.0","description":"Small package to encode or decode IP addresses from buffers to strings.","main":"index.js","types":"types","scripts":{"lint":"standard && dtslint --localTs node_modules/typescript/lib types","test":"fresh-tape test.js","test-cov":"c8 npm run test"},"repository":{"type":"git","url":"git+https://github.com/martinheidegger/ip-codec.git"},"keywords":["ip","ipv4","ipv6","codec","codecs","buffer","conversion"],"author":{"name":"Martin Heidegger"},"license":"MIT","bugs":{"url":"https://github.com/martinheidegger/ip-codec/issues"},"homepage":"https://github.com/martinheidegger/ip-codec#readme","devDependencies":{"c8":"^7.7.3","dtslint":"^4.1.1","fresh-tape":"^5.2.4","standard":"^16.0.3","typescript":"^4.3.5"},"gitHead":"71fb675b4fe016abcbdeb17d48a307bfbdadf586","_id":"@leichtgewicht/ip-codec@2.0.0","_nodeVersion":"16.4.0","_npmVersion":"7.18.1","dist":{"integrity":"sha512-Yhh6NYRv0V+Eo7qPmWKCtnaxjJfcM2OGiuJk4GZBIYcBdnqFHKYkh8GHNKTcSRdagxx3I0rQzqDktDkuBmMRqQ==","shasum":"7060cb38312c6268f5f7ba77a0d69999e83d2d17","tarball":"https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.0.tgz","fileCount":11,"unpackedSize":12223,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3XhpCRA9TVsSAnZWagAAyNsP/jTQqwF3uN+kQruf6rMV\nvLe4uZbioHqyMDP33eV2yruOagjhmmvfhixcGUBZpnzRv1re9uAyXWBzwYRs\n05d0YtXZE9WtLNn0fgucK1BzZtrc0Pa9177p6jUDj7bM29jF0TQCzwxxg8Wy\n3c8CbgjVL3lvxHSSfXooBdP7LEPBX6YyNrr33FhGlB2Qo2YQFWPXvfbErZLM\njY8umSwdXVpcN6DIJ9zoVKRpt97k3SjbwhZF82SbOxHo9n5Ovs3x9BUehTmJ\n1syyx58kmK1RSBK6NtKa7hUTL6Zuc1oU1bivV6qhNJE7OeWQDJR4al2ERj9t\nKmeGXOK0KYuzg4X2eqfSjIduxkEsXddmBSTqvNH1+gZCg4q/41yT+FXTVk4D\nJI9sM3bvrTkG3ZUe6LM2RC5ZJRBIMT5iHzfYAOUPnn39YZgiwfnoVD4MCyE0\nMQiPRUMRQgpSezf2J2Hspka+/mq3+AgRY9NdEP1Gant8N46RvnzuV+leUpYY\ns3gLkMB3wDTcX0AUx1vKBRG9gRVWfwHhxUKNbhiB380nR9B2GMftaeSqOvK7\nCvf1JKkXgOCgqzfAhCSApZN9GKsinU/tq70pkGU+DrsPR8dZcestEXR/KbnB\n47Cl2cQNmWsPunGjrfpHktehoUbCBJOenG7oJCUNqj9/uCZ0XQTZZ7IcVRTu\n+e5h\r\n=Pvlx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA7Xx0lV+17yVTZpUvNJbHGhyMCLLP70k3vjNkZrpMEHAiEAjj22ndHKTcWSsMAIKpTdehtQrVRhxQxPnrN8F9X6UR4="}]},"_npmUser":{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"},"directories":{},"maintainers":[{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ip-codec_2.0.0_1625127016845_0.886924448238269"},"_hasShrinkwrap":false},"2.0.1":{"name":"@leichtgewicht/ip-codec","version":"2.0.1","description":"Small package to encode or decode IP addresses from buffers to strings.","main":"index.js","types":"types","scripts":{"lint":"standard && dtslint --localTs node_modules/typescript/lib types","test":"fresh-tape test.js","test-cov":"c8 npm run test"},"repository":{"type":"git","url":"git+https://github.com/martinheidegger/ip-codec.git"},"keywords":["ip","ipv4","ipv6","codec","codecs","buffer","conversion"],"author":{"name":"Martin Heidegger"},"license":"MIT","bugs":{"url":"https://github.com/martinheidegger/ip-codec/issues"},"homepage":"https://github.com/martinheidegger/ip-codec#readme","devDependencies":{"c8":"^7.7.3","dtslint":"^4.1.1","fresh-tape":"^5.2.4","standard":"^16.0.3","typescript":"^4.3.5"},"gitHead":"5a60cf5e77243abc0fbf3ec0f0dd3870ea8c1711","_id":"@leichtgewicht/ip-codec@2.0.1","_nodeVersion":"16.4.0","_npmVersion":"7.18.1","dist":{"integrity":"sha512-0mln2idTl8eua+JADT18dSImamEaIf5rwH7ZqqISXSETkUMdTfbhP5yV/KdpOj4RSElApZjmqglTQzqHpSlPaQ==","shasum":"a29f6bc26b6b4bc10dab78b2da52550fd432d74b","tarball":"https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.1.tgz","fileCount":6,"unpackedSize":10133,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3XyBCRA9TVsSAnZWagAAVSAP/3K37uxDMS8O36PaKs3O\nX0mEv5Ur6f93Lb3/ZhlDh+PjuqgR3ChtueRGvzTOh4k0vn1kSJn2L6ff/9QF\nEc0VYNT9LMyN621ROqkZPZNTS4n0wfxBBD+aJYh/6XKT44Z515Sl4vT3O0FY\n/hNB6eYmbV4ulThjlWzB1Pc73IykNrxZZONSgnvGe19ztuhmLZmDeJVvfyN1\nr1NVCCoLcCCqBY0xICLTEHOPKKReh760/YsDvsgS2l9B7oYEk/MFev7pt0Vd\nParpnGopels5qlwwFcuKyTLwdihlDhQHaS60GAHZ1TlCEAWjuhqFvYsC99Ka\nH5GonAK9cwXik37/siU5wKoGzGOZW3leR6uSScq21FDS3pHSYlpjnrzKceVX\nNDZUtfcUPAz85AeAFa8QwVoy5/+/gjLAC2QGKPur1CRkieX2EJrR5ifq4WNy\netg/L5k4pKmTWJn3QU8Is6DFWnp+h/NqLuQ7x2rYbz/PmtMAgJjFOR9zpsZ7\nfSrGibRrfrmeC2FwXH2euFXChyKrHzohiAsj0nj29g2cxZtThA9vnzLv3uMO\nT1F18WvBiDXdcTLSgQ/E20uWE5BrThiL+bRNq0QRujc01nKRqyIobart6ZuI\nU79q/kL+hwwQ+j+/no5/nNnY8tNMAoeLq8o9oA2fnnHVS4kyM2WjqOUJr/Kv\nQphA\r\n=licd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHFOc1a980MZq/pB1lUHNjYvZ/QTUFttrdHpCAi/53WFAiAnD/S1WgIApkJ93sasMy6pabSNg7tJP480C4Nvy8dIZw=="}]},"_npmUser":{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"},"directories":{},"maintainers":[{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ip-codec_2.0.1_1625128065547_0.43722304706542947"},"_hasShrinkwrap":false},"2.0.2":{"name":"@leichtgewicht/ip-codec","version":"2.0.2","description":"Small package to encode or decode IP addresses from buffers to strings.","main":"index.js","types":"types","scripts":{"lint":"standard && dtslint --localTs node_modules/typescript/lib types","test":"fresh-tape test.js","test-cov":"c8 npm run test"},"repository":{"type":"git","url":"git+https://github.com/martinheidegger/ip-codec.git"},"keywords":["ip","ipv4","ipv6","codec","codecs","buffer","conversion"],"author":{"name":"Martin Heidegger"},"license":"MIT","bugs":{"url":"https://github.com/martinheidegger/ip-codec/issues"},"homepage":"https://github.com/martinheidegger/ip-codec#readme","devDependencies":{"c8":"^7.7.3","dtslint":"^4.1.1","fresh-tape":"^5.2.4","standard":"^16.0.3","typescript":"^4.3.5"},"gitHead":"5b9aeebdd2acd0a0bb3f46c91731827d6c9982b3","_id":"@leichtgewicht/ip-codec@2.0.2","_nodeVersion":"16.4.0","_npmVersion":"7.18.1","dist":{"integrity":"sha512-PjsLKLzJ0jWM1iM4xdYkrMyonAHP4kHGiXm81FRNfcnjToQA9UOknwZE28bxq0AGmEAMVBPSuuHurzla2wyYyA==","shasum":"862a66b3e0197109c11ddf2082a8db4c66ba6bd2","tarball":"https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.2.tgz","fileCount":6,"unpackedSize":10311,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3ZI6CRA9TVsSAnZWagAAdTkP/0J3NP2pIgNvwWRAe42f\n7PT/D+QNgCA6Ph4Dcd2ISp+IOwrvoBdPLspq4Y90oNBndtHnQ2f+5zfteS6K\n8WB4of+NwSPan1ZZspcuGp31JxMYBe4qajpLWdtFr4HBFJAK/iyrz4MiotcK\nSpeN9m4SQkhcKsWGiCFOf3skZLzCw/Lxw/KNlbW831t8sXwa+5DT4ZaFqn/Y\nXXRzVQ7uRISX1KbPAewr8jcIlQg/fx0UL5Rj5I4jl9IEaVJD/ho462uAp55T\nOnjqjM+teOOFk/410ffdhAFa+GCcWY3/TbXgtMqLdwuxuT7Bpp/v4i7DU+Uq\nLUQyTEZs1KtWYyOHgV9AS6zp/Nrp7usJ37JO9x3/uHb768opLr3XDD02Qn0P\nV1Asd7QqCFZqfNjhg+sGnvC4tuysNmp0bge4wCYj6ctXtNBR51mSlQSi8lT6\nYPDQCIpIkv6ykm/7K6tHTlEm826AQ8FwwmPk7jP6IisR25zr0HNg3t7UfDar\n5DqkpiLXiHrW9GxmW+48/tGjh3AePQoWq+xWPijalXeSUR5VZ7rcvNLdztpf\n7QYagmCuGfuPH7+zyZQEwOlGARcTG9/osd6EG8xRF0UK8nFGaSIGkL8nLLID\nJ4P6ciNKOhvqd+KlvrngzFuvEgz1PDrheZsylxodtlpiSfWdTd3jXXj/uWWY\n4xgH\r\n=Ny/y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9oIUYzlgJOO5k4AvBf0Pr8OdklxWG7ivhBylvrebkfwIgA/egueI5pkXA4TPSW1mRuBpvXMBdC0xEw686nB2rl84="}]},"_npmUser":{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"},"directories":{},"maintainers":[{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ip-codec_2.0.2_1625133625687_0.8987495300480688"},"_hasShrinkwrap":false},"2.0.3":{"name":"@leichtgewicht/ip-codec","version":"2.0.3","description":"Small package to encode or decode IP addresses from buffers to strings.","main":"index.js","types":"types","scripts":{"lint":"standard && dtslint --localTs node_modules/typescript/lib types","test":"fresh-tape test.js","test-cov":"c8 npm run test"},"repository":{"type":"git","url":"git+https://github.com/martinheidegger/ip-codec.git"},"keywords":["ip","ipv4","ipv6","codec","codecs","buffer","conversion"],"author":{"name":"Martin Heidegger"},"license":"MIT","bugs":{"url":"https://github.com/martinheidegger/ip-codec/issues"},"homepage":"https://github.com/martinheidegger/ip-codec#readme","devDependencies":{"c8":"^7.7.3","dtslint":"^4.1.1","fresh-tape":"^5.2.4","standard":"^16.0.3","typescript":"^4.3.5"},"gitHead":"473f3ba49a5d31fe3899f5d74c446422fe25349f","_id":"@leichtgewicht/ip-codec@2.0.3","_nodeVersion":"16.4.0","_npmVersion":"7.18.1","dist":{"integrity":"sha512-nkalE/f1RvRGChwBnEIoBfSEYOXnCRdleKuv6+lePbMDrMZXeDQnqak5XDOeBgrPPyPfAdcCu/B5z+v3VhplGg==","shasum":"0300943770e04231041a51bd39f0439b5c7ab4f0","tarball":"https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.3.tgz","fileCount":6,"unpackedSize":21040,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8qdcCRA9TVsSAnZWagAA3aMQAJB20a6HMv5neK19zaKD\nb6Cl2DQdm0ZvNiljGzmGKeKvZ35ivqCmBqs88KgNhJt2DvtbCRqv8yOb1gVE\n0ph+s5gmTYdXjWuNq1m+tfdYImWShnpcmq4VnlOqzFv/ff0pbmwYZmDLCeBd\noS8RroSVBJ70LCkPP9ydN2oCm+69EMyCLu5xwiNVtbp71NNn+SkkkIEDNXYt\nIYcUmvJo42pe7x2ggKP87dDxUO5iZxjLNx5aVyNxND3kbnxUGEYq66eVuYR4\nInG5HhCDmOuV/pG01DA+2IVKIHDoRS+Q1L9IjSpYRVBHb5LF5iTi/V9iR+hL\nVk6gxiOO0JgBC7zLWjLxS/6k1aUTG5fdDTjEf9DhP8FuUr7G4kNX+/wcLjxf\nC3XMzUxfdVfFZiLoPZ64+BHQBso9qheYxcwOwseYmVasjTFHbkMGZxi96r16\njMXAB5iiScdzCB14PNicjvqkWkPCr2e4JFJBSX5jrUv+w+ZVpV0OqoT1utrO\nVgyq2jJ/3DbiNZyOUJlb64ROah3ucXizA+4Em1CeStUIpn+RhrfXLfVkFWtX\nBJbDDXYZeFagAIsLZ5bWwBmrCYEiZyojBsZ2qUYeSPIf+NSkE8Rvhc4LyFGh\nVm7783XB58j9/PEGxhyZDxm0UFVxrTmq25U+TorqMWHLbxFLxZF4LK9C2B2g\nyhsC\r\n=jUZS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGLzOzlGuBjBkiTZA3fjCaT5fCTUY/2IypZwZP3Y3Fg9AiEA8R0BSnUpWMkmxusS2KJzn73VavdrrvOmtV0tcZzYEK4="}]},"_npmUser":{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"},"directories":{},"maintainers":[{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ip-codec_2.0.3_1626515292634_0.8654720488593579"},"_hasShrinkwrap":false},"2.0.4":{"name":"@leichtgewicht/ip-codec","version":"2.0.4","description":"Small package to encode or decode IP addresses from buffers to strings.","main":"index.cjs","types":"types","exports":{".":{"import":"./index.mjs","require":"./index.cjs"}},"scripts":{"lint":"standard && dtslint --localTs node_modules/typescript/lib types","test":"npm run lint && npm run unit","unit":"fresh-tape test.mjs","coverage":"c8 npm run unit","prepare":"node ./scripts/esm2umd.mjs ipCodec"},"repository":{"type":"git","url":"git+https://github.com/martinheidegger/ip-codec.git"},"keywords":["ip","ipv4","ipv6","codec","codecs","buffer","conversion"],"author":{"name":"Martin Heidegger"},"license":"MIT","bugs":{"url":"https://github.com/martinheidegger/ip-codec/issues"},"homepage":"https://github.com/martinheidegger/ip-codec#readme","devDependencies":{"@definitelytyped/dtslint":"0.0.112","c8":"^7.11.2","esm2umd":"^0.2.0","fresh-tape":"^5.5.3","standard":"^17.0.0","typescript":"^4.6.4"},"gitHead":"49c204316b0ad107e958ff9b07131e1595156be0","_id":"@leichtgewicht/ip-codec@2.0.4","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==","shasum":"b2ac626d6cb9c8718ab459166d4bb405b8ffa78b","tarball":"https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz","fileCount":6,"unpackedSize":17660,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCkH/B98zQebwR+kdqfzifjVK87GMUYGofVREGzMfVd/AIgL2Ii9DUsN1ijABK+uY9ZiR7sfk7UIjpCTyXwywnDJps="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJieUhCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrtSA//XcOipPBTEs5atqW1vCZ8jCMR3a1fwvp1ZPlcbAHiM/Q6bRmb\r\nEgKaDvdpRi3vksOmxJ9D2QNsbSYr/bW85laT+l/BNpQawoIzOTgEQwYJ3+mH\r\nyzny1c2XHICtwduSjtCkhSN5oJvq4eg45EBB9J23mI6tneIasKav4L0WJjG+\r\nlyyEwL4TNFJ/G+cVRsYun+pd238/7+OgGeTlT4ALgbvul6aXU/0a5TlQUYkT\r\nNySpJ+IMic01rqJEnlVKvYxLzed3gmYD1b9lWS9WgxM/guZm/9ljYZ03Kfk3\r\noe8Xf8Eh/qNkzXza+Pdku+a5HWkPt8TtYId6IXdS+KXkzi8Ac4rnQqB2/Zmc\r\nNDGmCYCuZvFKfx4jepi9zrzJawTGMw53OB55etrAd4Q1gfZcOd+tnm7qAtRK\r\nn4YN57XgYZfHOBl458H7omeMNLhaQ1KY2zMzt3buzC2tXVPnk4i+ZXv65iS4\r\neW5AitXreEHBj6L17pJwCRVQWuk+zNpOO/ycGA8jDYia0nsivbX/IoJGY5BA\r\niffi5Lohld3I59SwrV+oM+uaaRre+Yx3b+Os5OoFSxZDNfJ0pxdGrT0YnDuE\r\nMYxvnwgcFyD1gp6npf9L8NBV1IpmhVWcYJjPPkeChm+vgJw9jDghUj0T9G/C\r\nOfjO1eKPIg52+wQ2ECpGXW2kyA/QKTRRQJU=\r\n=p2zo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"},"directories":{},"maintainers":[{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ip-codec_2.0.4_1652115522635_0.6431655472954532"},"_hasShrinkwrap":false},"2.0.5":{"name":"@leichtgewicht/ip-codec","version":"2.0.5","description":"Small package to encode or decode IP addresses from buffers to strings.","main":"index.cjs","types":"types","exports":{".":{"types":"./types/index.d.ts","import":"./index.mjs","require":"./index.cjs"}},"scripts":{"lint":"standard && dtslint --localTs node_modules/typescript/lib types","test":"npm run lint && npm run unit","unit":"fresh-tape test.mjs","coverage":"c8 npm run unit","prepare":"npx @leichtgewicht/esm2umd ipCodec"},"repository":{"type":"git","url":"git+https://github.com/martinheidegger/ip-codec.git"},"keywords":["ip","ipv4","ipv6","codec","codecs","buffer","conversion"],"author":{"name":"Martin Heidegger"},"license":"MIT","bugs":{"url":"https://github.com/martinheidegger/ip-codec/issues"},"homepage":"https://github.com/martinheidegger/ip-codec#readme","devDependencies":{"@definitelytyped/dtslint":"0.2.19","@leichtgewicht/esm2umd":"^0.4.0","c8":"^9.1.0","fresh-tape":"^5.5.3","standard":"^17.1.0","typescript":"^5.4.3"},"_id":"@leichtgewicht/ip-codec@2.0.5","gitHead":"7312f356342ec0728767fb0a1d9a4b25a053f8e5","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-Vo+PSpZG2/fmgmiNzYK9qWRh8h/CHrwD0mo1h1DzL4yzHNSfWYujGTYsWGreD000gcgmZ7K4Ys6Tx9TxtsKdDw==","shasum":"4fc56c15c580b9adb7dc3c333a134e540b44bfb1","tarball":"https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.5.tgz","fileCount":6,"unpackedSize":17710,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYdWZFW3dg7gznLfcUTJf4Z4SoKQFZlK0ozL2qOvgadAIhAKcZ1rIusAtGXSuF7EK9H19KDpMQ509iGd2V5b7Dao5j"}]},"_npmUser":{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"},"directories":{},"maintainers":[{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ip-codec_2.0.5_1711514534522_0.9941210286100588"},"_hasShrinkwrap":false}},"time":{"created":"2021-07-01T06:11:06.043Z","1.0.0":"2021-07-01T06:11:06.252Z","modified":"2024-03-27T04:42:15.108Z","2.0.0":"2021-07-01T08:10:16.947Z","2.0.1":"2021-07-01T08:27:45.649Z","2.0.2":"2021-07-01T10:00:25.877Z","2.0.3":"2021-07-17T09:48:12.765Z","2.0.4":"2022-05-09T16:58:42.800Z","2.0.5":"2024-03-27T04:42:14.678Z"},"maintainers":[{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"}],"description":"Small package to encode or decode IP addresses from buffers to strings.","homepage":"https://github.com/martinheidegger/ip-codec#readme","keywords":["ip","ipv4","ipv6","codec","codecs","buffer","conversion"],"repository":{"type":"git","url":"git+https://github.com/martinheidegger/ip-codec.git"},"author":{"name":"Martin Heidegger"},"bugs":{"url":"https://github.com/martinheidegger/ip-codec/issues"},"license":"MIT","readme":"# @leichtgewicht/ip-codec\n\nSmall package to encode or decode IP addresses from buffers to strings.\nSupports IPV4 and IPV6.\n\n## Usage\n\nThe basics are straigthforward\n\n```js\nimport { encode, decode, sizeOf, familyOf } from '@leichtgewicht/ip-codec'\n\nconst uint8Array = encode(\"127.0.0.1\")\nconst str = decode(uint8Array)\n\ntry {\n  switch sizeOf(str) {\n    case 4: // IPv4\n    case 16: // IPv6\n  }\n  switch familyOf(str) {\n    case: 1: // IPv4\n    case: 2: // IPv6\n  }\n} catch (err) {\n  // Invalid IP\n}\n```\n\nBy default the library will work with Uint8Array's but you can bring your own buffer:\n\n```js\nconst buf = Buffer.alloc(4)\nencode('127.0.0.1', buf)\n```\n\nIt is also possible to de-encode at a location inside a given buffer\n\n```js\nconst buf = Buffer.alloc(10)\nencode('127.0.0.1', buf, 4)\n```\n\nAllocation of a buffer may be difficult if you don't know what type the buffer:\nyou can pass in a generator to allocate it for you:\n\n```js\nencode('127.0.0.1', Buffer.alloc)\n```\n\nYou can also de/encode ipv4 or ipv6 specifically:\n\n```js\nimport { v4, v6 } from '@leichtgewicht/ip-codec'\n\nv4.decode(v4.encode('127.0.0.1'))\nv6.decode(v6.encode('::'))\n```\n\n## History\n\nThe code in this package was originally extracted from [node-ip](https://github.com/indutny/node-ip) and since improved.\n\nNotable changes are the removal of the `Buffer` dependency and better support for detection of\nformats and allocation of buffers.\n\n## License\n\n[MIT](./LICENSE)\n","readmeFilename":"Readme.md"}