
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
amadeusnode
Advanced tools
A comprehensive TypeScript client for the Amadeus API, providing easy access to flight search, hotel booking, airport information, and travel-related data.
A comprehensive TypeScript client for the Amadeus API, providing easy access to flight search, hotel booking, airport information, and travel-related data.
npm install amadeus-node-client
import { AmadeusClient } from "amadeus-node-client";
// Initialize the client
const amadeus = new AmadeusClient(
"your-api-key",
"your-api-secret",
"test" // or "production"
);
// Search for flights
const flights = await amadeus.getFlightOffers("LAX", "JFK", "2024-01-15");
// Search for hotels
const hotels = await amadeus.getHotelsByCity("LAX");
const flights = await amadeus.getFlightOffers("LAX", "JFK", "2024-01-15");
const flights = await amadeus.getFlightOffers("LAX", "JFK", "2024-01-15", {
returnDate: "2024-01-22",
adults: 2,
travelClass: "ECONOMY",
nonStop: true,
currencyCode: "USD",
max: 20,
});
const metrics = await amadeus.flightPriceMetrics("LAX", "JFK", "2024-01-15", {
currencyCode: "USD",
oneWay: "true",
});
const dates = await amadeus.cheapestFlightDate("LAX", "JFK", {
departureDate: "2024-01-15",
oneWay: "true",
maxPrice: 500,
currencyCode: "USD",
});
const hotels = await amadeus.getHotelsByCity("LAX", {
radius: 10,
radiusUnit: "KM",
ratings: ["4", "5"],
amenities: "SPA",
});
const hotels = await amadeus.getHotelsByGeocode(34.0522, -118.2437, {
radius: 10,
radiusUnit: "KM",
ratings: ["4", "5"],
});
const offers = await amadeus.getHotelOffers(["HOTEL1", "HOTEL2"], {
adults: 2,
checkInDate: "2024-01-15",
checkOutDate: "2024-01-18",
currency: "USD",
bestRateOnly: true,
});
// Search for cities
const cities = await amadeus.airportCitySearch("CITY", "Los Angeles", {
countryCode: "US",
view: "FULL",
});
// Search for airports
const airports = await amadeus.airportCitySearch("AIRPORT", "LAX");
const routes = await amadeus.getAirportRoutes("LAX", {
max: 20,
arrivalCountryCode: "US",
});
const destinations = await amadeus.cheapFlightDestinations("LAX", {
departureDate: "2024-01-15",
oneWay: "true",
maxPrice: 500,
currencyCode: "USD",
viewBy: "COUNTRY",
});
const recommendations = await amadeus.recommendedDestinations(["LAX", "JFK"], {
travelerCountryCode: "US",
destinationCountryCodes: "US,ES,UK",
});
const status = await amadeus.getFlightStatus("AA", "100", "2024-01-15", {
operationalSuffix: "A",
});
The client includes comprehensive error handling:
try {
const flights = await amadeus.getFlightOffers("LAX", "JFK", "2024-01-15");
console.log("Flights found:", flights.data?.length);
} catch (error) {
console.error("API Error:", error.message);
}
All methods return properly typed responses. Import types for better TypeScript support:
import {
getFlightOffersResponse,
getHotelsResponse,
AirportCitySearchResponse,
} from "./responseTypes";
const amadeus = new AmadeusClient("test-key", "test-secret", "test");
const amadeus = new AmadeusClient("prod-key", "prod-secret", "production");
The Amadeus API has rate limits:
Monitor your usage in the Amadeus Developer Portal.
git checkout -b feature/amazing-feature
)git commit -m 'Add amazing feature'
)git push origin feature/amazing-feature
)This project is licensed under the MIT License - see the LICENSE file for details.
Note: This client is not officially affiliated with Amadeus. For official support, please contact Amadeus directly.
FAQs
A comprehensive TypeScript client for the Amadeus API, providing easy access to flight search, hotel booking, airport information, and travel-related data.
The npm package amadeusnode receives a total of 6 weekly downloads. As such, amadeusnode popularity was classified as not popular.
We found that amadeusnode demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.