Socket
Book a DemoInstallSign in
Socket

ip-master

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

ip-master

Ip Master

0.0.1
unpublished
latest
npmnpm
Version published
Maintainers
1
Created
Source

Ip Master

Description

A simple tool that allows you to manage IPs easily.

Installation

npm:

npm install ip-master

Usage

Importing The Library:

// CommonJs
const ipMaster = require("ip-master");

// ES6
import ipMaster from "ip-master";

Getting The Client Ip:

app.get("/", (req, res) => {
  const ip = ipMaster.getClientIp(req);
  res.send(ip);
});

Getting The Client Ip Using Middleware:

app.use(ipMaster.middleware());

app.get("/", (req, res) => {
  const ip = req.clientIp;
  res.send(ip);
});

Credits:

We want to thank Petar Bojinov for the inspiration.

Keywords

IP

FAQs

Package last updated on 15 Oct 2022

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.