
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
ipinfodb-middleware
Advanced tools
An Express middleware to get the client IP & time details from ipinfodb.com
Express Middleware for ipinfodb.com
npm install ipinfodb-middleware
var express = require('express');
var app = express();
var key = 'abcd'; // your ipinfodb.com API key
var ipinfodb = require('ipinfodb-middleware');
app.enable('trust proxy');
app.use(ipinfodb({key: key}));
app.get('/', function (req, res) {
// IP info is now available in req.ipinfo
res.json(req.ipinfo);
});
app.listen(3000);
The req.ipinfo
will contain the following output if things worked fine.
{
"statusCode": "OK",
"statusMessage": "",
"ipAddress": "122.161.60.x",
"countryCode": "IN",
"countryName": "India",
"regionName": "Delhi",
"cityName": "Delhi",
"zipCode": "110008",
"latitude": "28.6667",
"longitude": "77.2167",
"timeZone": "+05:30"
}
Jenil Gogari
FAQs
An Express middleware to get the client IP & time details from ipinfodb.com
The npm package ipinfodb-middleware receives a total of 2 weekly downloads. As such, ipinfodb-middleware popularity was classified as not popular.
We found that ipinfodb-middleware demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.