1.0.0 • Published 5 years ago

@bosscat/express-ip v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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.