This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

x-ip

1.0.4 • Public • Published

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))
}

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i x-ip

      Weekly Downloads

      5

      Version

      1.0.4

      License

      MIT

      Unpacked Size

      6.61 kB

      Total Files

      3

      Last publish

      Collaborators

      • cloudseat