Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
astroip-typescript
Advanced tools
Official Typescript / Javascript SDK for AstroIP.co Geolocation API
Weekly downloads
Readme
This is the official Javascript Library for AstroIP.co, which allows a fast lookup of any IP address or ASN. Our main features are:
IP Geolocation data (country, city, postal codes, latitude, longitude)
Timezone data
Currency data
Security data (TOR insights, Crawler insights, Proxy insigths)
ASN data (number of IPs managed by an ASN, the organization name, the list of IP blocks managed by a given ASN, service type like isp, gov, edu, etc..)
User Agent detection
In order to use AstroIP.co API, you will need to register a free account at https://astroip.co and get an API KEY. All data fields are always enabled regardless of the subscription tier.
The Free tier will allow up to 30,000 requests a month. The PRO tier will allow for up to 3 Mil requests a month. More pricing info are available at: https://astroip.co/#pricing-section
Npm
$ npm i astroip-typescript
Yarn
$ yarn add astroip-typescript
IP Lookup:
const {AstroIP} = require("astroip-typescript")
let testApiKey = '1725E47C-1486-4369-AAFF-463CC9764026';
const client = new AstroIP(testApiKey);
let hostname = true;
let userAgent = true;
let ipInfo = await client.lookupIP('8.8.8.8', hostname, userAgent);
console.log(ipInfo);
ASN Lookup:
const {AstroIP} = require("astroip-typescript")
let testApiKey = '1725E47C-1486-4369-AAFF-463CC9764026';
const client = new AstroIP(testApiKey);
let asnInfo = await client.lookupASN("AS15169");
console.log(asnInfo);
FAQs
Official Typescript / Javascript SDK for AstroIP.co Geolocation API
The npm package astroip-typescript receives a total of 1 weekly downloads. As such, astroip-typescript popularity was classified as not popular.
We found that astroip-typescript 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
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.