New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

express-fast-ip

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-fast-ip

An express middleware for getting fast information about an IP.

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Express Fast IP

An express module for getting IP information using fast-geoip.

Installation

npm install express-fast-ip

Usage

Typescript

import {ip, ipInfo} from 'express-fast-ip';
import * as express from 'express';

const app = express();

app.use(ip);

app.get('/', function (req, res) {
    res.send(req.ipInfo);
});

// It is also possible to fetch ip information programatically
console.log(
    await ipInfo(),
);

Javascript

const express = require('express');
const app = express();
const {ip, ipInfo} = require('express-fast-ip');

app.use(ip);

app.get('/', function (req, res) {
    res.send(req.ipInfo);
});

// It is also possible to fetch ip information programatically
console.log(
    await ipInfo(),
);

Author

Eduardo Nuzzi eduardomnuzzi@gmail.com

Contributions

Feel free to contribute to this project.

If you find a bug or want a feature, but don't know how to fix/implement it, please fill an issue.
If you fixed a bug or implemented a new feature, please send a pull request.

Credits

Huge thanks to Oyetoke Toby for implementing the code that inspired this lib.

Keywords

FAQs

Package last updated on 30 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc