Skip to content

ozipi/ipv6-to-bin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ipv6-to-bin npm version Build Status Coverage Status

A small method to convert an ipv6 from hex to binary keeping the format ::::::: (8 segments)

Installation

npm install ipv6-to-bin --save

Usage

var ipv6ToBin = require('ipv6-to-bin');

var localhost = ipv6ToBin('0000:0000:0000:0000:0000:0000:0000:0001');

console.log('localhost', localhost);

Tests

npm test

Todo

add :: support add :0: support add :102: support

Contributing

Add unit tests for any new or changed functionality. Lint and test your code.

Release History

  • 0.1.1 modified readme
  • 0.1.0 Initial release

About

A small method to convert an ipv6 from hex to binary keeping the format _:_:_:_:_:_:_:_ (8 segments)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published