Gathering detailed insights and metrics for micro-geoip-lite
Gathering detailed insights and metrics for micro-geoip-lite
npm install micro-geoip-lite
Typescript
Module System
Node Version
NPM Version
48.8
Supply Chain
73.7
Quality
76.2
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
50,856
Last Day
41
Last Week
124
Last Month
393
Last Year
13,244
5 Stars
30 Commits
3 Watching
3 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.0.0
Package Id
micro-geoip-lite@1.0.0
Unpacked Size
9.40 kB
Size
3.83 kB
File Count
6
NPM Version
6.14.16
Node Version
12.22.12
Publised On
17 Jul 2024
Cumulative downloads
Total Downloads
Last day
70.8%
41
Compared to previous day
Last week
25.3%
124
Compared to previous week
Last month
-20%
393
Compared to previous month
Last year
29.5%
13,244
Compared to previous year
2
22
🌍 An extremely lite geoip decoder utilizing the micro-geoip-lite microservice to geo decode the IP info via an https request - the microservice utilizes MaxMind's IP info dataset.
yarn add micro-geoip-lite
, npm i micro-geoip-lite
params:
1{ 2 serviceUrl?: string, // called instead of the default provider URL. You can also provide this via an env var `REACT_APP_SERVICE_URL_GEOIP` or `SERVICE_URL_GEOIP` 3 timeout?: string, // timeout in ms 4}
returns:
1{ 2 ip: string, // if ip param was not provided, this defaults to request.ip 3 range: [ number, number ], 4 country: string, 5 region: string, 6 eu: string, // '0' or '1' 7 timezone: string, 8 city: string, 9 ll: [ number, number ], 10 metro: number, 11 area: number, 12 // error: 'Error text', // only exists if an error happened 13}
example - fetch own ip info:
1import geodecodeIp from 'micro-geoip-lite'; 2 3const result = await geodecodeIp(); 4 5{ 6 ip: '207.97.227.239', // if ip param was not provided, this defaults to request.ip 7 range: [ 3479298048, 3479300095 ], 8 country: 'US', 9 region: 'TX', 10 eu: '0', 11 timezone: 'America/Chicago', 12 city: 'San Antonio', 13 ll: [ 29.4969, -98.4032 ], 14 metro: 641, 15 area: 1000, 16 // error: 'Error text', // only exists if an error happened 17}
example - fetch specific ip info:
1import geodecodeIp from 'micro-geoip-lite'; 2 3const result = await geodecodeIp('207.97.227.239');
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/16 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
27 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More