All Projects → CITGuru → express-ip

CITGuru / express-ip

Licence: MIT License
An Express Middleware for getting IP information

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to express-ip

Country Ip Blocks
CIDR country-level IP data, straight from the Regional Internet Registries, updated hourly.
Stars: ✭ 100 (+257.14%)
Mutual labels:  geolocation, ip, geoip
Mercury
Mercury is a hacking tool used to collect information and use the information to further hurt the target
Stars: ✭ 236 (+742.86%)
Mutual labels:  geolocation, ip
Iploc
Fastest IP To Country Library
Stars: ✭ 224 (+700%)
Mutual labels:  geolocation, geoip
pikaz-location
定位插件(限中国)
Stars: ✭ 78 (+178.57%)
Mutual labels:  geolocation, ip
Geo ip
Retreive the geolocation of an IP address based on the ipinfodb.com webservice
Stars: ✭ 103 (+267.86%)
Mutual labels:  geolocation, geoip
Track Ip
Advanced Ip Tracker Tool
Stars: ✭ 150 (+435.71%)
Mutual labels:  geolocation, ip
ipinfo
A wrapper around the ipinfo.io services
Stars: ✭ 51 (+82.14%)
Mutual labels:  geolocation, ip
Geoip2 Golang
Unofficial MaxMind GeoIP2 Reader for Go
Stars: ✭ 1,074 (+3735.71%)
Mutual labels:  geolocation, geoip
tinygeoip
🐉 tiny geoip microservice
Stars: ✭ 13 (-53.57%)
Mutual labels:  geolocation, geoip
GeoLite2-Country
GeoLite2-Country.mmdb.gz CDN files based on Free Open Source CDN jsDelivr!
Stars: ✭ 69 (+146.43%)
Mutual labels:  ip, geoip
tor-ip-changer
request new identity every X seconds interval using TOR client
Stars: ✭ 233 (+732.14%)
Mutual labels:  ip, geoip
locus
MMDB reader for geolocation and ASN lookup of IP addresses
Stars: ✭ 93 (+232.14%)
Mutual labels:  geolocation, geoip
Iplocation
Get ip location information.
Stars: ✭ 70 (+150%)
Mutual labels:  geolocation, ip
Shiny geoip
IP to location API service
Stars: ✭ 172 (+514.29%)
Mutual labels:  geolocation, geoip
Ipdata
🌐 An IP lookup system utilizing open datasets
Stars: ✭ 58 (+107.14%)
Mutual labels:  geolocation, ip
GeoLite2-City
GeoLite2-City.mmdb.gz CDN files based on Free Open Source CDN jsDelivr!
Stars: ✭ 170 (+507.14%)
Mutual labels:  ip, geoip
Maxminddb Golang
MaxMind DB Reader for Go
Stars: ✭ 319 (+1039.29%)
Mutual labels:  geolocation, geoip
Snoop
Snoop — инструмент разведки на основе открытых данных (OSINT world)
Stars: ✭ 886 (+3064.29%)
Mutual labels:  geolocation, ip
GeoLite.mmdb
MaxMind's GeoIP2 GeoLite2 Country, City, and ASN databases
Stars: ✭ 690 (+2364.29%)
Mutual labels:  geolocation, geoip
Geolocate-IP-Browser-Extension
A browser extension, which shows you the origin of your IP address.
Stars: ✭ 21 (-25%)
Mutual labels:  geolocation, ip

Express IP

This is an express module for getting IP information using geoip-lite. It can also be used as express middleware. Basically its an express middleware. So with this, you can get info about an IP.

Installation

npm install express-ip

Usage

short

const express = require('express');
const app = express();
const expressip = require('express-ip');
app.use(expressip().getIpInfoMiddleware);

app.get('/', function (req, res) {
    res.send(req.ipInfo);
});

full

const express = require('express');
const app = express();
const expressip = require('express-ip');
const PORT = process.env.PORT || 7000;
const path = require('path');

app.use(expressip().getIpInfoMiddleware);


app.set("PORT", PORT);

app.get('/', function (req, res) {
    res.send(req.ipInfo);
});

app.listen(app.get('PORT'), function () {
    console.log('Express started on http://localhost:' +
        app.get('PORT') + '; press Ctrl-C to terminate.');
});

Author

Oyetoke Toby [email protected] (http://patreon.com/oyetoketoby)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].