
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
connect-geoip
Advanced tools
Connect middleware to query client geolocation from geoip data (at the moment country data is the only data retrieved).
$ npm install connect-geoip
If you have problems with the geoip package, turn to https://github.com/kuno/GeoIP for instructions.
Example below returns geoip details (country) for every request.
var connect = require('connect');
var geoip = require('connect-geoip');
connect.createServer(
geoip.geoip(),
function(req, res, next) {
res.end(JSON.stringify(req.geoip));
// {"country":{"country_code":"US","country_code3":"USA","country_name":"United States","continent_code":"NA"}}
}
).listen(3000);
geoip.geoip({path : "/tmp/GeoIP.dat"});
GeoIP module used (https://github.com/kuno/GeoIP) is licensed under GNU LGPL.
Other:
(The MIT License)
Copyright(c) 2011 Applifier Ltd.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Connect middleware to query client geolocation from geoip data
The npm package connect-geoip receives a total of 0 weekly downloads. As such, connect-geoip popularity was classified as not popular.
We found that connect-geoip 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
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
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.