ip2nick
v0.0.5
Published
Simple library to generate a nickname out of an IP address.
Downloads
40
Maintainers
Readme
ip2nick
Simple IP to nickname generator. It maps three last numbers of an IPv4 address into a cool nickname.
It always returns same nickname for same IP address. Nickname collisions can happen but are unlikely.
var ip2nick = require('ip2nick');
ip2nick('127.0.0.1'); // => actblobid
ip2nick('wrong'); // => undefined
*** Example results ***
- 127.0.0.1 => mumpsbroth7
- 255.255.255.255 => osmillshrimp
- 192.168.1.5 =>lorundluj