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

    Install

    npm i x-ip

    DownloadsWeekly Downloads

    59

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    6.61 kB

    Total Files

    3

    Last publish

    Collaborators

    • cloudseat