get-real-client-ip

1.0.0 • Public • Published

THIS PACKAGE IS NOT USED FOR COMMERCIAL PURPOSE


Usage:

  • Case 1: When using in CommonJS (Node environment)
(async function () {
	return await (await import('get-real-client-ip')).getClientInformation();
})();
  • Case 2: When using in ESM
import { getClientInformation } from 'get-real-client-ip'

getClientInformation()
  .then(ip => console.log(ip))
  .catch(e => console.error(e))

Result:

{
  "ip": "x.x.x.x",
  "registry": "<registry-name>",
  "countrycode": "DE",
  "countryname": "Germany",
  "asn": {
    "code": "X",
    "name": "<isp-name>",
    "route": "X.X.X.X/24",
    "start": "X.X.X.X",
    "end": "X.X.X.X",
    "count": "X"
  },
  "spam": false,
  "tor": false
}

Hope all of you guys like this small package, please give a star. Thank you. ❤️❤️

/get-real-client-ip/

    Package Sidebar

    Install

    npm i get-real-client-ip

    Weekly Downloads

    3

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    1.82 kB

    Total Files

    3

    Last publish

    Collaborators

    • isekaimaouyoki-sama