@bosscat/express-ip

An Express middleware to help you get IP info.

Usage no npm install needed!

<script type="module">
  import bosscatExpressIp from 'https://cdn.skypack.dev/@bosscat/express-ip';
</script>

README

express-ip

An Express middleware to help you get IP info.

This package is a fork of CITGuru/express-ip.

Table of Content

Installation

yarn add @bosscat/express-ip

Basic Usage

import express from "express";
import ipInfo from "@bosscat/express-ip";

const server = express();

server.use(ipInfo());

server.get("/", function(req, res) {
  res.send(req.ipInfo);
});

Typescript

This library is written. Types are provided.

License

This library is MIT licensed.