retrieve-ip
v1.1.1
Published
Get IP address of a HTTP request object
Downloads
12
Readme
retrieve-ip
Get IP address of a HTTP request object
Install
npm install --save retrieve-ip
Usage
const app = require('express')();
const retrieveIp = require('retrieve-ip');
app.get('/', function(req, res) {
const ip = retrieveIp(req);
});
API
retrieveIp(requestObject)
Return IP address of request
requestObject
Type: object
Request object
License
MIT © Rajika Imal