It's a simple lightweight zero cost library to convert an IP address to a decimal value and vice versa.
const {from, to} = require("ip2d");
console.log(from("127.0.0.1")); // --> 2130706433
console.log(to(2130706433)); // --> 127.0.0.1
Thanks goes to these wonderful people (emoji key):
0xflotus 📖 💻 ⚠️ 📆 🚇 🚧 📦 🛡️ |
This project follows the all-contributors specification. Contributions of any kind welcome!