Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
flightradar24-client-ts
Advanced tools
npm install flightradar24-client-ts
import { FlightRadarApi } from "flightradar24-client-ts";
const flightRadarApi = new FlightRadarApi()
// airports
const airports = await api.fetchAirports();
// airlines
const airlines = await api.fetchAirlines();
// details of a single flight
const flightDetail = await api.fetchFlight("<flight code (ICAO or IATA)>")
// Radar
// get major zones
const zones = await api.fetchZones();
// get flights in a zone
const flights = await api.fetchFromRadar({
zone: zones[0]
});
// multi-zone flight fetch
const multizoneFlights = await api.fetchFromRadarMultiZone(zones);
import { FlightRadarApi } from "flightradar24-client-ts";
const flightRadarApi = new FlightRadarApi();
interface LiveFilters {
/**
* The airline ICAO code to fetch aircraft from (e.g. AFR for Air France)
*/
airline?: string[];
/**
* The call signs to fetch aircraft from (e.g.SFR850)
*/
callsign?: string[];
/**
* The flight numbers to fetch aircraft from (e.g. FA850)
*/
flight?: string[];
/**
* The aircraft registration numbers to fetch aircraft from (e.g. F-GZNP)
*/
reg?: string[];
/**
* The aircraft model codes to fetch aircraft from (e.g. A320)
*/
type?: string[];
/**
* The Airports ICAO codes to fetch aircraft from (e.g. LFPG)
*/
airport?: string[];
}
export interface RadarOptions {
/**
* The zone to fetch aircraft from. If not specified, the entire world is used.
*/
zone?: ZoneData;
/**
* Whether to fetch inactive aircraft
*/
inactive?: boolean;
/**
* Whether to fetch aircraft on ground
*/
onGround?: boolean;
/**
* Whether to fetch gliders
*/
gliders?: boolean;
/**
* Whether to fetch aircraft from the MLAT data source
*/
MLAT?: boolean;
/**
* Whether to fetch aircraft from the FAA data source
*/
FAA?: boolean;
/**
* Whether to fetch aircraft from the satellite data source
*/
satellite?: boolean;
/**
* Whether to fetch vehicles
*/
vehicles?: boolean;
/**
* Whether to fetch estimated positions
*/
estimatedPositions?: boolean;
/**
* Whether to fetch aircraft from the FLARM data source
*/
FLARM?: boolean;
/**
* Whether to fetch aircraft from the ADS-B data source
*/
ADSB?: boolean;
/**
* Whether to fetch airborne aircraft
*/
inAir?: boolean;
/**
* The filters to apply to the aircraft data
*/
filters?: LiveFilters;
}
const radarOptions: RadarOptions = {
// Filters
};
const flights = flightRadarApi.fetchFromRadar({
radarOptions
});
import { defaultRadarOptions, FlightRadarApi } from "flightradar24-client-ts";
const flightRadarApi = new FlightRadarApi();
const flightsJFK = flightRadarApi.fetchFromRadar({
...defaultRadarOptions,
filters: {
airport: ["JFK"]
}
});
Api docs can be found here
This project uses the flightradar24-client-ts to fetch flights from the radar and display them on a 3d globe. It can also filter the flights based on the user's input.
FAQs
A client for the Flightradar24 API written in TypeScript
The npm package flightradar24-client-ts receives a total of 4 weekly downloads. As such, flightradar24-client-ts popularity was classified as not popular.
We found that flightradar24-client-ts 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.