1.0.4 • Published 4 years ago

x-ip v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

A simple util to determine request client ip address. It could works well with all standard http.IncomingMessage and http.ServerResponse objects.

Installation

npm install x-ip

Usage

const getIp = require('x-ip')

module.exports = (req, res) => {
    res.end(getIp(req))
}