ip2d

1.0.12 • Public • Published

ip2d

All Contributors Known Vulnerabilities Build Status npm version

It's a simple lightweight zero cost library to convert an IP address to a decimal value and vice versa.

Usage

const {from_str, to_str} = require("ip2d");
 
console.log(from_str("127.0.0.1")); // --> 2130706433
 
console.log(to_str(2130706433)); // --> 127.0.0.1

Contributors

Thanks goes to these wonderful people (emoji key):

0xflotus
0xflotus

📖 💻 ⚠️ 📆 🚇 🚧 📦 🛡️

This project follows the all-contributors specification. Contributions of any kind welcome!

Readme

Keywords

none

Package Sidebar

Install

npm i ip2d

Weekly Downloads

2

Version

1.0.12

License

MIT

Unpacked Size

4.97 kB

Total Files

4

Last publish

Collaborators

  • 0xflotus