{"_id":"@cursorsdottsx/i","_rev":"2-02cab65f15106fbb39c6d486f856d75e","name":"@cursorsdottsx/i","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@cursorsdottsx/i","version":"1.0.0","description":"A few IP address utilities (only v4).","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/cursorsdottsx/i.git"},"keywords":[],"author":{"name":"im-lonely","email":"cursors.dev@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/cursorsdottsx/i/issues"},"homepage":"https://github.com/cursorsdottsx/i#readme","gitHead":"b9097c8ede53ca497587c3d125bab8f2dd2a3820","_id":"@cursorsdottsx/i@1.0.0","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-jWVQmfWSvMWGuK9t56DGhmd5IO4T4HIG/sz8wzFQFNB67Sy3IEkVSXPTk+SREZVpoYdipjb44NF5wvtto4rsOQ==","shasum":"341bf9d60f17eee94e31b8801fad8820c3745592","tarball":"https://registry.npmjs.org/@cursorsdottsx/i/-/i-1.0.0.tgz","fileCount":3,"unpackedSize":6057,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgqTRiCRA9TVsSAnZWagAAt4IP/2gCkKntSgJq/ckSeWlb\nCzF8A/1YkQkhkq4HvtnJ3MXY3ojolgRLijY8VI1NOPEMQjl0Ivg+rqPWdFTI\ndXWmaNH93/XbA7A5AiFLazgDV3gJJHNeKozb4cEsXspL9RWDOEevDfGEOULx\n8S0og0n6CBUTlyAWQDhM1Y+3XTGjqaBoKQtFCWG9Jq4BQop72hErdl5pQALq\nJizQ/WVo5QjoZSxJa5+IAvKUVLhdU9/Y/qB0fDPIwM12eoDsQ4f/NYh0Aq2V\nEprtuwVpK03IcTohVAyAm6s40WK+xnTOvmqe532l2kDvWPDiPnnanCvjugrr\nMrcdQlxVQJNxUhIoUVYL5HBF1tvDBxrR6pP0lbTO6oCvsuAZmKYZ8Ncka9UD\nu8jYSlfM219HjfTqLOlrfzj3MZ477VJo1AYDCnXdIHHFp7S7GKsmHtWTl/dY\nT9MyMbZnXGNb4V6zyFSGG6z6iGYmzivgiVqifhHDLghUN1zU0ooMpL8esAnU\n6qRiEHJFUVfxfcWZFIBVnQPpxe4gPVgwbC1eFdJ6A07w+Zht0jALSix9+XEl\nvK+MrqWgmkQvuOmDtwDfqL46Y5q9yGAkZKjIh2RRUnKUwG5E/G+sx2P992Ci\n040sNm6Kmeu23q2GT1BDNHOZJjml4OOUqHa6qObOkN8i7DVsQszJXuzJ+5FW\nn14a\r\n=0Z7W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBm8gWMfU6kJ3KzrLGVDCkg3AypZG0Me/lr9ltXx2+WeAiEA3qNASKyCe0TcHvg9B1pukSRGSKncQz+jM+ChfaA+c4w="}]},"_npmUser":{"name":"cursorspkg","email":"cursors.dev@gmail.com"},"directories":{},"maintainers":[{"name":"cursorspkg","email":"cursors.dev@gmail.com"},{"name":"cursorsdev","email":"cursors.alt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i_1.0.0_1621701730117_0.7495442481079229"},"_hasShrinkwrap":false},"2.0.0":{"name":"@cursorsdottsx/i","version":"2.0.0","description":"A few IP address utilities (only v4).","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/cursorsdottsx/i.git"},"keywords":[],"author":{"name":"im-lonely","email":"cursors.dev@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/cursorsdottsx/i/issues"},"homepage":"https://github.com/cursorsdottsx/i#readme","gitHead":"3ddcc4ba99b64a718e072b0f1d3d5cd44192f52b","_id":"@cursorsdottsx/i@2.0.0","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-M2wvII6QENSI1HXiDx7WMRdYrGXnDoBSCcIDr7ju64KjcYOcNqxEgpP/ad4RThxWsp9VkWlB/pCgVe5RkhyPVA==","shasum":"a430f29f0b855c788c246b4d2e444dbcdd9ec798","tarball":"https://registry.npmjs.org/@cursorsdottsx/i/-/i-2.0.0.tgz","fileCount":4,"unpackedSize":7121,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgqWrICRA9TVsSAnZWagAABTAP+gMA81Ax9RIe6bn18EQe\nog+lhuxueVyHrcYP9z2JYIbdh2L/eljs0bPnZFPy5f/kaS0LrSAVG1mBpTe5\niTyRGdSe9kp6LtJYf3ecj2cPWaH292xpoLie/4iSZW/M8uMdCU8Xm7j68I/T\n5rLqg1af7ktOVq3FiSSb8bV09+VkXf2BF8IdblNiSi84KI8coCprvN2jW/Jp\nkARaJgTM8FRZMuzcyeI1IMsLksypG2kv6oKBCicHggpeplte+Fm0p4Jd4RYw\n5/AnwnNcdX7jeKHKFY/5tug2CVrkE3kXufowF5LlEmoAeBcDVmvdtYwYkR98\nQsehzdtbPjfzwSw12XhqfUnUu7jyUcKWpWTrJ95Z5UdGC37do/B/FRv5J9cx\n2zhuD+cVRzYXQ/O8chUSL6i2UiwzBO6vvsGl65KefBqSHooxwM+sQrHArv2J\ndr9IzPJ+2eKMU9oLlHceC4lkJKrSsMms9nHHS7GO74HXPWBTk0DMqxVmFKNF\n1RvXitGn9Lfs8UoKN/8mFDL49jShMOh5zvTc1ilUjMmCIFq6co60Jqo2C5SI\nNWokcgM/yacZ5+sGqM30hC5OxOajAgr0MccNGELQceiitJvEjm6PSVzOYPYM\n8m1tpoBo4gQ6DZmogCW5ikFi2g3dLkzAhA3Ez/QKDRVe3iXJDpApaat7ZZWu\n8YDm\r\n=do/L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAIsgCxxNhsyg+hY6sEx4yPW7DufV0esg9D22ZFy8iZqAiB433/bSAOxJu/4yfYG/aF19OplzNOzgh8znVbIUfA3Sg=="}]},"_npmUser":{"name":"cursorspkg","email":"cursors.dev@gmail.com"},"directories":{},"maintainers":[{"name":"cursorspkg","email":"cursors.dev@gmail.com"},{"name":"cursorsdev","email":"cursors.alt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i_2.0.0_1621715655466_0.7276995694998736"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-22T16:42:09.788Z","1.0.0":"2021-05-22T16:42:10.240Z","modified":"2022-04-05T02:20:39.354Z","2.0.0":"2021-05-22T20:34:15.634Z"},"maintainers":[{"name":"cursorspkg","email":"cursors.dev@gmail.com"},{"name":"cursorsdev","email":"cursors.alt@gmail.com"}],"description":"A few IP address utilities (only v4).","homepage":"https://github.com/cursorsdottsx/i#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/cursorsdottsx/i.git"},"author":{"name":"im-lonely","email":"cursors.dev@gmail.com"},"bugs":{"url":"https://github.com/cursorsdottsx/i/issues"},"license":"MIT","readme":"| [a](https://www.npmjs.com/package/@cursorsdottsx/a)\n| [b](https://www.npmjs.com/package/@cursorsdottsx/b)\n| [c](https://www.npmjs.com/package/@cursorsdottsx/c)\n| [d](https://www.npmjs.com/package/@cursorsdottsx/d)\n| [e](https://www.npmjs.com/package/@cursorsdottsx/e)\n| [f](https://www.npmjs.com/package/@cursorsdottsx/f)\n| [g](https://www.npmjs.com/package/@cursorsdottsx/g)\n| [h](https://www.npmjs.com/package/@cursorsdottsx/h)\n| **i**\n| [j](https://www.npmjs.com/package/@cursorsdottsx/j)\n| [k](https://www.npmjs.com/package/@cursorsdottsx/k)\n| [l](https://www.npmjs.com/package/@cursorsdottsx/l)\n| [m](https://www.npmjs.com/package/@cursorsdottsx/m)\n| [n](https://www.npmjs.com/package/@cursorsdottsx/n)\n| [o](https://www.npmjs.com/package/@cursorsdottsx/o)\n| [p](https://www.npmjs.com/package/@cursorsdottsx/p)\n| [q](https://www.npmjs.com/package/@cursorsdottsx/q)\n| [r](https://www.npmjs.com/package/@cursorsdottsx/r)\n| [s](https://www.npmjs.com/package/@cursorsdottsx/s)\n| [t](https://www.npmjs.com/package/@cursorsdottsx/t)\n| [u](https://www.npmjs.com/package/@cursorsdottsx/u)\n| [v](https://www.npmjs.com/package/@cursorsdottsx/v)\n| [w](https://www.npmjs.com/package/@cursorsdottsx/w)\n| [x](https://www.npmjs.com/package/@cursorsdottsx/x)\n| [y](https://www.npmjs.com/package/@cursorsdottsx/y)\n| [z](https://www.npmjs.com/package/@cursorsdottsx/z)\n|\n\n**I is for IP**\n\n# @cursorsdottsx/i\n\nA few IP address utilities (only v4). More will be added later when I actually understand how IPs work.\n\nUse NPM or Yarn to install:\n\n```bash\nnpm install @cursorsdottsx/i\n```\n\n```bash\nyarn add @cursorsdottsx/i\n```\n\nImport the utility class:\n\n```js\nconst IPv4 = require(\"@cursorsdottsx/i\");\n```\n\nA class named `IPv4` will be added.\n\n`new IPv4(address, subnet)`\n\n-   `address` – IP address\n-   `subnet` – Subnet mask\n\nCreates a new IPv4 address.\n\n`IPv4.prototype.toBinary()` – Returns the binary representation of the IP address.\n\n`IPv4.prototype.toDecimal()` – Returns the decimal representation of the IP address.\n\n`IPv4.isValid(address)` – Returns true if the IP address is valid.\n\n`IPv4.isPrivate(address)` – Returns true if the IP address is private.\n\n`IPv4.not(a, b)` – Exactly what it sounds like.\n\n`IPv4.or(a, b)` – Exactly what it sounds like.\n\n[npm abc's homepage](https://codepen.io/cursorsdottsx/full/KKWNRaY)\n","readmeFilename":"README.md"}