
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Lib exploiting Ryanair API written in TypeScript.
npm i --save ryanair
After installation, just import it:
import * as ryanair from 'ryanair';
Then, you need to fetch all Ryanair informations (like Aiports description, cities descriptions, routes...):
let ctx = await ryanair.getData();
If you want theses information to be cached, use ryanair.getData(true);
;
getData
returns a promise returning a RyanairContext
instance.
Class RyanairContext
is a collection of Map from string code to regions, cities, countries, airports. For example, knowing MTL
is the code for the airport of Montpellier, (await getData()).airports.get('MPL')
will return an Airport
instance witch represent the airport of Montpellier.
regions: Map<String, Region>
cities: Map<String, City>
countries: Map<String, Country>
airports: Map<String, Airport>
getCountryByName(name: string) : Country
getCityByName(name: string) : City
getRegionByName(name: string) : Region
Airport
, City
, Region
or Country
are extentions of RyanairGeoPlace
.
A RyanairGeoPlace
is basically a list of airport.
async findTo(dest: RyanairGeoPlace, date: Date, searchWithInNDays = 0): Promise<Flight[]>
async findAll(date: Date, searchWithInNDays = 0)
getGeoContainer(): RyanairGeoPlaceContainer
union(...list: RyanairGeoPlace[]) : RyanairGeoPlaceContainer
intersect(...list: RyanairGeoPlace[]) : RyanairGeoPlaceContainer
getNearbyAirports(howFarKm: number) : RyanairGeoPlaceContainer
FAQs
Unofficial Ryanair library written in TypeScript
The npm package ryanair receives a total of 11 weekly downloads. As such, ryanair popularity was classified as not popular.
We found that ryanair 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
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.