
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@toil/ip-geolocation
Advanced tools
A library for free (and not only free) use of the ip geolocation APIs
A library for free (and not only free) use of the IP Geolocation APIs, which supports working with JavaScript, TypeScript, and also has built-in separated types for Typebox.
Installation via Bun:
bun add @toil/ip-geolocation
Installation via NPM:
npm install @toil/ip-geolocation
To get started with the API, you need to create an IPGeolocation client. This can be done using the code below.
const client = new IPGeolocationClient({
service: IPGeolocationService.freeipapi,
});
const result = await client.lookup("103.21.244.0");
You can see more code examples here
In some services, transferring reserved ranges of IP addresses may cause an error - this is normal.
If you are missing some data in the lookup method, and the service should have it, it's recommended to consider using the provider directly using the rawLookup method
Status | Service | Limits | Features |
---|---|---|---|
✅ | FreeIPAPI | 60 req/min | detail |
✅ | IPAPICom | 45 req/min | detail |
More detailed information about the supported access services here
To build, you must have:
Don't forget to install the dependencies:
bun install
Building the entire package:
bun build:bun
You can use this build option if you only want to build types for TypeBox:
bun build:typebox
The library has minimal test coverage to check it's performance.
Run the tests:
bun test
FAQs
A library for free (and not only free) use of the ip geolocation APIs
The npm package @toil/ip-geolocation receives a total of 21 weekly downloads. As such, @toil/ip-geolocation popularity was classified as not popular.
We found that @toil/ip-geolocation demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.