Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
node-iplocate
Advanced tools
Readme
Find geolocation data from IP addresses (e.g. city, country, timezone) using the IPLocate.io API.
IPLocate.io provides 1,000 free requests per day. For higher plans, check out the website
npm install node-iplocate
const iplocate = require("node-iplocate");
iplocate("8.8.8.8").then(function(results) {
console.log("IP Address: " + results.ip);
console.log("Country: " + results.country + " (" + results.country_code + ")");
console.log("Continent: " + results.continent);
console.log("Organisation: " + results.org + " (" + results.asn + ")");
console.log(JSON.stringify(results, null, 2));
});
// Or with callbacks
iplocate("8.8.8.8", null, function(err, results) {
// ...
console.log(JSON.stringify(results, null, 2));
});
// Provide an API key from IPLocate.io
iplocate("8.8.8.8", { api_key: "abcdef" }).then(function(results) {
// ...
});
IP Address: 8.8.8.8
Country: United States (US)
Continent: North America
Organisation: Google LLC (AS15169)
{
"ip": "8.8.8.8",
"country": "United States",
"country_code": "US",
"city": null,
"continent": "North America",
"latitude": 37.751,
"longitude": -97.822,
"time_zone": null,
"postal_code": null,
"org": "Google LLC",
"asn": "AS15169"
}
To run the test suite, first install the dependencies, then run npm test
:
$ npm install
$ npm test
Distributed under the MIT License.
FAQs
Find geolocation data from IP addresses (e.g. city, country, timezone) using the IPLocate.io API
The npm package node-iplocate receives a total of 439 weekly downloads. As such, node-iplocate popularity was classified as not popular.
We found that node-iplocate 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.