0.0.5 • Published 9 years ago

ip2nick v0.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

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