ip2d

[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors) [![Known Vulnerabilities](https://snyk.io/test/github/0xflotus/ip2d/badge.svg?targetFile=package.json)](https://snyk.io/test/github/0xflotus

Usage no npm install needed!

<script type="module">
  import ip2d from 'https://cdn.skypack.dev/ip2d';
</script>

README

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!