Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alejandromume/ip-info3
A simple NPM package for get a lot of info about a IP address
https://github.com/alejandromume/ip-info3
geolocation-api ip ip-address-geolocation ip-information javascript-library npm
Last synced: 9 days ago
JSON representation
A simple NPM package for get a lot of info about a IP address
- Host: GitHub
- URL: https://github.com/alejandromume/ip-info3
- Owner: alejandromume
- Created: 2021-03-27T16:07:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-03-27T17:31:17.000Z (over 3 years ago)
- Last Synced: 2024-10-05T01:35:11.098Z (about 2 months ago)
- Topics: geolocation-api, ip, ip-address-geolocation, ip-information, javascript-library, npm
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# IP Info 3
![d](https://img.shields.io/badge/ip--info3-v1.0.6-red)
Package: https://www.npmjs.com/package/ip-info3
## Description
* A simple package for get a lot of info about a IP address
## Install`npm install ip-info3`
## Modules
* `GetAll() -> Get all the info`
* `GetAS() -> Get the IP AS`
* `GetCity() -> Get the IP City`
* `GetCountry() -> Get the IP Country`
* `GetCountryCode() -> Get the IP Country code`
* `GetISP() -> Get the IP ISP`
* `GetOrg() -> Get the IP Organization`
* `GetRegion() -> Get the IP Region`
* `GetRegionName() -> Get the IP Region name`
* `GetQueryStatus() -> Get if the query was successfull`
* `GetTimezone() -> Get the IP Timezone`
* `GetZip() -> Get the IP zip`## Examples
```js
const IPInfo = require("ip-info3")
const getinfo = new IPInfo.getIPInfo();getinfo.GetCity("90.90.90.90").then(data => {
console.log(data)
});
```Output
```
>> Paris
```---
```js
const IPInfo = require("ip-info3")
const getinfo = new IPInfo.getIPInfo();getinfo.GetRegionName("90.90.90.90").then(data => {
console.log(data)
});
```Output
```
>> Île-de-France
```---
```js
const IPInfo = require("ip-info3")
const getinfo = new IPInfo.getIPInfo();getinfo.GetAll("90.90.90.90").then(data => {
console.log(data)
});
```Output
```json
>> {
"status":"success",
"country":"France",
"countryCode":"FR",
"region":"IDF",
"regionName":"Île-de-France",
"city":"Paris",
"zip":"75018",
"lat":48.8323,
"lon":2.4075,
"timezone":"Europe/Paris",
"isp":"Orange S.A.",
"org":"G-Core Labs",
"as":"AS3215 Orange S.A.",
"query":"90.90.90.90"
}
```