Skip to content

Commit 0415eb3

Browse files
committed
Update readme
1 parent 3971b76 commit 0415eb3

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ Below are the methods supported in this module.
206206

207207
|Method Name|Description|
208208
|---|---|
209+
|Constructor(csvFile)|Expect a IP2Location Country Information CSV file. This database is free for download at https://www.ip2location.com/free/country-information|
209210
|getCountryInfo(countryCode)|Returns the country information.|
210211

211212
## Usage
@@ -231,6 +232,7 @@ Below are the methods supported in this module.
231232

232233
|Method Name|Description|
233234
|---|---|
235+
|Constructor(csvFile)|Expect a IP2Location ISO 3166-2 Subdivision Code CSV file. This database is free for download at https://www.ip2location.com/free/iso3166-2|
234236
|getRegionCode(countryCode, regionName)|Returns the region code for the supplied country code and region name.|
235237

236238
## Usage

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ip2location-nodejs",
3-
"version": "9.4.1",
3+
"version": "9.4.2",
44
"description": "IP2Location geolocation component",
55
"keywords": [
66
"ip2location",

src/ip2location.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var https = require("https");
55
const csv = require("csv-parser");
66

77
// For BIN queries
8-
const VERSION = "9.4.1";
8+
const VERSION = "9.4.2";
99
const MAX_INDEX = 65536;
1010
const COUNTRY_POSITION = [
1111
0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,

0 commit comments

Comments
 (0)