Skip to content

Commit

Permalink
Update release timing
Browse files Browse the repository at this point in the history
  • Loading branch information
sapics committed Aug 26, 2024
1 parent d6c476f commit c845462
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-v4.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: v4 auto database update
on:
schedule:
- cron: '48 22 * * Tue,Fri'
- cron: '58 22 * * Tue,Fri'
jobs:
release:
name: v4 version
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Auto dastabase update
on:
schedule:
- cron: '48 21 * * Tue,Fri'
- cron: '48 22 * * Tue,Fri'
workflow_dispatch:
jobs:
release:
name: latest version
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# geoip-country [![NPM version](https://badge.fury.io/js/geoip-country.svg)](https://badge.fury.io/js/geoip-country)

A native nodejs API to get country information from `ip-address`.
A native nodejs API to get country information from ip address.

This library is fork of the [geoip-lite](https://github.com/bluesmoon/node-geoip) which provides a very fast ip to geolocation API by loading the ip to geolocation database into memory.
However, because the database contains city and coordinate information, etc., its size exceeds 120 MB, which means that it uses a lot of memory and takes a long time before the first execution.

`geoip-country` reduces memory usage and speeds up startup and faster lookup by limiting database from geolocation information to country information.
`geoip-country` reduces memory usage and faster startup and faster lookup by restricting database to country from geolocation.
Futhermore, we add the other information `capital`, `continent_name`, `languages`, etc., from v5.
You can check the `test/benchmark.js` after updating `geoip-lite` database.

Expand All @@ -14,6 +14,7 @@ You can check the `test/benchmark.js` after updating `geoip-lite` database.
| geoip-country | 7 MB | 13 ms | 0.00123 ms/ip |
| geoip-lite | 124MB | 52 ms | 0.00237 ms/ip |


This product includes GeoLite2 ipv4 and ipv6 country data created by [MaxMind](http://maxmind.com/).
The database of this product **updates twice a weekly**.

Expand Down

0 comments on commit c845462

Please sign in to comment.