maxmind-city
Maxmind GeoLite2 City Database
Last updated a year ago by pi0bot .
CC-BY-SA-4.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install maxmind-city 
SYNC missed versions from official npm registry.

Maxmind Databases

Maxmind / Geolite2 databases for node-maxmind

CircleCI

IMPORTANT: Please read about license changes which are effective starting by December 30, 2019

Packages

All packages will be auto updated and published every monday.

Package Latest Size
maxmind-country npm version install size
maxmind-asn npm version install size
maxmind-city npm version install size

Usage

Require maxmind:

const maxmind = require('maxmind')

Load either max-city, max-country or max-asn packages:

// City Lookup
const lookupCity = maxmind.openSync(require('maxmind-city'))
const city = lookupCity.get('8.8.8.8')

// Country Lookup
const lookupCountry = maxmind.openSync(require('maxmind-country'))
const country = lookupCountry.get('8.8.8.8')

// ASN Lookup
const lookupASN = maxmind.openSync(require('maxmind-asn'))
const asn = lookupASN.get('8.8.8.8')

Example results

ASN

{
  "autonomous_system_number": 15169,
  "autonomous_system_organization": "Google LLC"
}

Country

{
  "continent": {
    "code": "NA",
    "geoname_id": 6255149,
    "names": {
      "de": "Nordamerika",
      "en": "North America",
      "es": "Norteamérica",
      "fr": "Amérique du Nord",
      "ja": "北アメリカ",
      "pt-BR": "América do Norte",
      "ru": "Северная Америка",
      "zh-CN": "北美洲"
    }
  },
  "country": {
    "geoname_id": 6252001,
    "iso_code": "US",
    "names": {
      "de": "USA",
      "en": "United States",
      "es": "Estados Unidos",
      "fr": "États-Unis",
      "ja": "アメリカ合衆国",
      "pt-BR": "Estados Unidos",
      "ru": "США",
      "zh-CN": "美国"
    }
  },
  "registered_country": {
    "geoname_id": 6252001,
    "iso_code": "US",
    "names": {
      "de": "USA",
      "en": "United States",
      "es": "Estados Unidos",
      "fr": "États-Unis",
      "ja": "アメリカ合衆国",
      "pt-BR": "Estados Unidos",
      "ru": "США",
      "zh-CN": "美国"
    }
  }
}

City

NOTE: Latitude and longitude are not precise and should not be used to identify a particular street address or household.

{
  "continent": {
    "code": "NA",
    "geoname_id": 6255149,
    "names": {
      "de": "Nordamerika",
      "en": "North America",
      "es": "Norteamérica",
      "fr": "Amérique du Nord",
      "ja": "北アメリカ",
      "pt-BR": "América do Norte",
      "ru": "Северная Америка",
      "zh-CN": "北美洲"
    }
  },
  "country": {
    "geoname_id": 6252001,
    "iso_code": "US",
    "names": {
      "de": "USA",
      "en": "United States",
      "es": "Estados Unidos",
      "fr": "États-Unis",
      "ja": "アメリカ合衆国",
      "pt-BR": "Estados Unidos",
      "ru": "США",
      "zh-CN": "美国"
    }
  },
  "location": {
    "accuracy_radius": 1000,
    "latitude": 37.751,
    "longitude": -97.822
  },
  "registered_country": {
    "geoname_id": 6252001,
    "iso_code": "US",
    "names": {
      "de": "USA",
      "en": "United States",
      "es": "Estados Unidos",
      "fr": "États-Unis",
      "ja": "アメリカ合衆国",
      "pt-BR": "Estados Unidos",
      "ru": "США",
      "zh-CN": "美国"
    }
  }
}

Development

Run ./scripts/fetch and ./scripts/update to fetch latest databases.

License

This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com

Packages published under MIT

Current Tags

  • 1.0.3-20191224                                ...           latest (a year ago)

61 Versions

  • 1.0.3-20191224                                ...           a year ago
  • 1.0.3-20191217                                ...           a year ago
  • 1.0.3-20191210                                ...           a year ago
  • 1.0.3-20191203                                ...           a year ago
  • 1.0.3-20191126                                ...           a year ago
  • 1.0.3-20191119                                ...           a year ago
  • 1.0.3-20191112                                ...           a year ago
  • 1.0.3-20191105                                ...           a year ago
  • 1.0.3-20191029                                ...           a year ago
  • 1.0.3-20191022                                ...           a year ago
  • 1.0.3-20191015                                ...           a year ago
  • 1.0.3-20191008                                ...           a year ago
  • 1.0.3-20191001                                ...           a year ago
  • 1.0.3-20190924                                ...           a year ago
  • 1.0.3-20190917                                ...           a year ago
  • 1.0.3-20190903                                ...           a year ago
  • 1.0.3-20190827                                ...           a year ago
  • 1.0.3-20190820                                ...           a year ago
  • 1.0.3-20190813                                ...           a year ago
  • 1.0.3-20190806                                ...           a year ago
  • 1.0.3-20190730                                ...           a year ago
  • 1.0.3-20190723                                ...           a year ago
  • 1.0.3-20190716                                ...           a year ago
  • 1.0.3-20190709                                ...           2 years ago
  • 1.0.3-20190702                                ...           2 years ago
  • 1.0.3-20190625                                ...           2 years ago
  • 1.0.3-20190618                                ...           2 years ago
  • 1.0.3-20190611                                ...           2 years ago
  • 1.0.3-20190514                                ...           2 years ago
  • 1.0.3-20190507                                ...           2 years ago
  • 1.0.3-20190430                                ...           2 years ago
  • 1.0.3-20190423                                ...           2 years ago
  • 1.0.3-20190416                                ...           2 years ago
  • 1.0.3-20190409                                ...           2 years ago
  • 1.0.3-20190402                                ...           2 years ago
  • 1.0.3-20190326                                ...           2 years ago
  • 1.0.3-20190319                                ...           2 years ago
  • 1.0.3-20190312                                ...           2 years ago
  • 1.0.3-20190305                                ...           2 years ago
  • 1.0.3-20190226                                ...           2 years ago
  • 1.0.3-20190219                                ...           2 years ago
  • 1.0.3-20190212                                ...           2 years ago
  • 1.0.3-20190205                                ...           2 years ago
  • 1.0.3-20190129                                ...           2 years ago
  • 1.0.3-20190122                                ...           2 years ago
  • 1.0.3-20190115                                ...           2 years ago
  • 1.0.3-20190108                                ...           2 years ago
  • 1.0.3-20190101                                ...           2 years ago
  • 1.0.3-20181225                                ...           2 years ago
  • 1.0.3-20181218                                ...           2 years ago
  • 1.0.3-20181211                                ...           2 years ago
  • 1.0.3-20181204                                ...           2 years ago
  • 1.0.3-20181127                                ...           2 years ago
  • 1.0.3-20181120                                ...           2 years ago
  • 1.0.3-20181113                                ...           2 years ago
  • 1.0.3-20181106                                ...           2 years ago
  • 1.0.3-20181023                                ...           2 years ago
  • 1.0.2-20181023                                ...           2 years ago
  • 1.0.1-20181023                                ...           2 years ago
  • 1.0.0-20181023                                ...           2 years ago
  • 0.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |