ip-parse
convert ip into an array,support ipv4 and ipv6.
install
npm install ip-parse
example
ipParse // output: ['127','0','0','1']ipParse // output: ['110','120','119','255']ipParse // output: [] // because ipv4 every num must lte 255ipParse // output: ['0','0','0','0','0','0','0','0']ipParse // output: ['0','0','0','0','0','0','0','1']ipParse // output: ['1','2','3','0','0','0','0','0']ipParse // output: ['1','2','3','4','5','6','7','ffff']ipParse // output: [] // because ipv6 only one ::