New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ipdb/iso3166

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ipdb/iso3166

IPIP.net database patches (ISO-3166)

2019.7.3
latest
Source
npm
Version published
Weekly downloads
10
11.11%
Maintainers
1
Weekly downloads
 
Created
Source

ipdb-iso3166

IPIP.net database patches (ISO-3166)

Free databases available for download here. If you need better accuracy you should consider buying commercial subscription.

Install

$ npm install @ipdb/iso3166

Patches

value
country_code
continent_code
timezone
utc_offset
idd_code

Usage

const IPDB = require('ipdb');
const ipdb_iso3166 = require('@ipdb/iso3166');
const ipdb = new IPDB('./data/ipipfree.ipdb', {
  patches: [ipdb_iso3166]
});

ipdb.find('183.62.57.1');
/*
{
  code: 0,
  data: {
    country_name: '中国',
    region_name: '广东',
    city_name: '广州',
    bitmask: 18,
    country_code: 'CN',
    continent_code: 'AP',
    timezone: 'Asia/Shanghai',
    utc_offset: 'UTC+8',
    idd_code: '86'
  }
}
*/
  • ipdb - IP lookup using IPIP.net database

License

MIT © metowolf

Keywords

ipip

FAQs

Package last updated on 03 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts