A small method to convert an ipv4 from decimal to binary keeping the format x.x.x.x
npm install ip2bin --save
var ip2bin = require('ip2bin');
var routerIp = ip2bin('192.168.0.1');
console.log('routerIp', routerIp);
npm test
Add unit tests for any new or changed functionality. Lint and test your code.
- 0.1.0 Initial release