ip-to-string

Convert an integer IP address to its dot-decimal string representation, eg `0x7F000001` to `127.0.0.1`

Usage no npm install needed!

<script type="module">
  import ipToString from 'https://cdn.skypack.dev/ip-to-string';
</script>

README

ip-to-string

Convert an integer IP address to its dot-decimal string representation, eg 0x7F000001 to 127.0.0.1

Travis Downloads

Install

npm i -S ip-to-string

Use

var ipToString = require('ip-to-string');
ipToString(0x7F000001);
// -> '127.0.0.1'

license

MIT