Skip to content
/ ip2bin Public

A small method to convert an ip from decimal to binary keeping the format x.x.x.x

License

Notifications You must be signed in to change notification settings

ozipi/ip2bin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ip2bin npm version Build Status Coverage Status

A small method to convert an ipv4 from decimal to binary keeping the format x.x.x.x

Installation

npm install ip2bin --save

Usage

var ip2bin = require('ip2bin');

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.

Release History

  • 0.1.0 Initial release

About

A small method to convert an ip from decimal to binary keeping the format x.x.x.x

Resources

License

Stars

Watchers

Forks

Packages

No packages published