ipv4-range takes an IPv4 address and a number, and returns an array of surrounding addresses.
npm install ipv4-range
ipv4-range(ip (string):the starting ip address.total (int):the number of surrounding addressedyou're interested in. Odd numbers willresult in the results being weighted tothe left, where possible.)
var range =// => ['192.168.0.2', '192.168.0.3', '192.168.0.5']