From c84546210dbb63a3f19615949fe0f823151ada21 Mon Sep 17 00:00:00 2001 From: sapics Date: Mon, 26 Aug 2024 21:28:16 +0900 Subject: [PATCH] Update release timing --- .github/workflows/release-v4.yml | 2 +- .github/workflows/release.yml | 3 ++- README.md | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-v4.yml b/.github/workflows/release-v4.yml index 30290e7..5e53e22 100644 --- a/.github/workflows/release-v4.yml +++ b/.github/workflows/release-v4.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a04e7fe..ceac1ee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/README.md b/README.md index 77399e6..2c62d7f 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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**.