myip-tools
v1.0.2
Published
```js var ip = require('myip-tools');
Downloads
3
Readme
Usage
var ip = require('myip-tools');
ip.address() // my ip address
ip.isEqual('::1', '::0:1'); // true
ip.toBuffer('127.0.0.1') // Buffer([127, 0, 0, 1])
ip.toString(new Buffer([127, 0, 0, 1])) // 127.0.0.1
ip.fromPrefixLen(24) // 255.255.255.0