How to use the geoip-country.lookup function in geoip-country

To help you get started, we’ve selected a few geoip-country examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Flood-UI / flood / server / util / clientResponseUtil.js View on Github external
peers = mapPropsToResponse(torrentPeerPropsMap.props, peersData).map(peer => {
      const geoData = geoip.lookup(peer.address) || {}; =;

      // Strings to boolean
      peer.isEncrypted = peer.isEncrypted === '1';
      peer.isIncoming = peer.isIncoming === '1';

      return peer;


Less memory usage version of geoip-lite, by supporting only country lookup.

MaxMind GeoLite2 License
Latest version published 1 day ago

Package Health Score

74 / 100
Full package analysis

Popular geoip-country functions