long2ip
PHP's long2ip in JavaScript.
Modified based on http://locutus.io/php/long2ip/.
Features
- Simple
- Unit Testing
- No dependencies
Example
const long2ip = ; console; // 192.0.34.166console; // 0.0.0.0console; // 255.255.255.255 // negative, greater than 4294967295 or non-numbers resolve to falseconsole; // falseconsole; // falseconsole; // false // float will be roundedconsole; // 192.0.34.166