# express-lookip

> Express LookIP

Latest version **1.0.0** (published 2016-01-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install express-lookip
pnpm add express-lookip
yarn add express-lookip
bun add express-lookip
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-01-15 |
| First published | 2016-01-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Denis Demchenko |
| Maintainers | lancedikson |
| Keywords | lookip, express |

## Links

- npm: https://www.npmjs.com/package/express-lookip
- Repository: https://github.com/lancedikson/express-lookip
- Homepage: https://github.com/lancedikson/express-lookip#readme
- Issues: https://github.com/lancedikson/express-lookip/issues
- npm.io page: https://npm.io/package/express-lookip

## Dependencies (1)

- [lookip](https://npm.io/package/lookip.md) ^1.0.1

## Recent versions

- 1.0.0 (latest) — 2016-01-15

## README

# express-lookip middleware

The middleware based on `lookip` package for request geo information about user's IP address.

Middleware adds `req.ipinfo` property with all info about user's location.

## Usage
```
// require it
var expressLookIP = require('express-lookip');

// add middleware
app.use(expressLookIP());

// use it anywhere below
app.get('/', function (req, res) {
  if (req.ipinfo.country == 'RU') {
    res
      .status(451)
      .end('Service is not available in your country.');
  } else {
    // ...
  }
});
```

---
_Source: https://npm.io/package/express-lookip · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
