1.0.0 • Published 5 years ago
@bosscat/express-ip v1.0.0
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.
1.0.0
5 years ago