0.1.1 • Published 8 years ago
ipv4-to-bin v0.1.1
ipv4-to-bin
A small method to convert an ipv4 from decimal to binary keeping the format x.x.x.x
Installation
npm install ipv4-to-bin --save
Usage
var ipv4ToBin = require('ipv4-to-bin');
var routerIp = ip2bin('192.168.0.1');
console.log('routerIp', routerIp);
Tests
npm test
Contributing
Add unit tests for any new or changed functionality. Lint and test your code.
@todo:
- add error support for > 255
Release History
- 0.1.0 Initial release