Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
airports-data
Advanced tools
Readme
Airports data: static, dynamic and custom dump. Data from OpenFlights Airports Database.
npm install airports-data
const fs = require("fs");
const getAirportsData = require("airports-data");
process.on("unhandledRejection", err => {
console.error(err);
process.exit(1);
});
async function dumpData() {
const data = await getAirportsData({
dynamic: true,
keys: ["name", "iata"]
});
fs.writeFileSync("airports.json", JSON.stringify(data));
}
dumpData();
getAirportsData(options): Promise<AirportData[]>
Option | Type | Default | Description |
---|---|---|---|
options | object? | ||
options.dynamic | boolean? | false | Request the latest data online. |
options.keys | string?[] | string? | undefined | Apply a simple filtering to the loaded data (both statically and dynamically). Array of strings or string with comma separated keys. |
Usage
$ airports-data
Options
--dynamic, -d Get data from https://openflights.org/data.html#airport instead of the local dump [Default: false]
--keys, -k Keys to include [Default:
id
name
city
country
iata
icao
latitude
longitude
altitude
timezone
dst
tz
type
source
]
Examples
$ airports-data
[..., {"id":1382,"name":"Charles de Gaulle International Airport","city":"Paris","country":"France","iata":"CDG","icao":"LFPG","latitude":49.0127983093,"longitude":2.54999995232,"altitude":392,"timezone":1,"dst":"E","tz":"Europe/Paris","type":"airport","source":"OurAirports"}, ...]
$ airports-data --keys name,iata
[..., {"name":"Charles de Gaulle International Airport","iata":"CDG"}, ...]
Key | Description |
---|---|
id | Unique OpenFlights identifier for this airport. |
name | Name of airport. May or may not contain the City name. |
city | Main city served by airport. May be spelled differently from Name. |
country | Country or territory where airport is located. See countries.dat to cross-reference to ISO 3166-1 codes. |
iata | 3-letter IATA code. null if not assigned/unknown. |
icao | 4-letter ICAO code. null if not assigned. |
latitude | Decimal degrees, usually to six significant digits. Negative is South, positive is North. |
longitude | Decimal degrees, usually to six significant digits. Negative is West, positive is East. |
altitude | In feet. |
timezone | Hours offset from UTC. Fractional hours are expressed as decimals, eg. India is 5.5. |
dst | Daylight savings time. One of E (Europe), A (US/Canada), S (South America), O (Australia), Z (New Zealand), N (None) or U (Unknown). |
tz | Timezone in "tz" (Olson) format, eg. "America/Los_Angeles". |
type | Type of the airport. Value "airport" for air terminals, "station" for train stations, "port" for ferry terminals and "unknown" if not known. |
source | Source of this data. "OurAirports" for data sourced from OurAirports, "Legacy" for old data not matched to OurAirports (mostly DAFIF), "User" for unverified user contributions. |
MIT. See license file.
FAQs
Airports data: static, dynamic and custom dump.
We found that airports-data 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
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.