@sagi.io/maxmind
Version:
IP lookup using Maxmind databases
20 lines (15 loc) • 496 B
JavaScript
;
exports.concat2 = function(a, b) {
return (a << 8) | b;
};
exports.concat3 = function(a, b, c) {
return (a << 16) | (b << 8) | c;
};
exports.concat4 = function(a, b, c, d) {
return (a << 24) | (b << 16) | (c << 8) | d;
};
exports.legacyErrorMessage =
'Maxmind v1 module has changed API.\n\
Upgrade instructions can be found here: \
https://github.com/runk/node-maxmind/wiki/Migration-guide\n\
If you want to use legacy libary then explicitly install maxmind@0.6';