Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

iatacodes

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iatacodes

NodeJS Library for https://iatacodes.org/ API

  • 7.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
44
increased by120%
Maintainers
1
Weekly downloads
 
Created
Source

nodejs-sdk

NodeJS Library for https://airlabs.co/

Installation

$ npm install iatacodes

Documentation

https://airlabs.co/

Examples

const IC = require('iatacodes');

const ic = new IC('YOUR-API-KEY');

ic.api('airports', {code: 'CDG'}, function(error, response) {
  console.log(response);
});

ic.api('cities', {code: 'PAR'}, function(error, response) {
  console.log(response);
});

ic.api('countries', {code: 'FR'}, function(error, response) {
  console.log(response);
});

ic.api('airlines', {code: 'AF'}, function(error, response) {
  console.log(response);
});

ic.api('routes', {arrival: 'CDG'}, function(error, response) {
  console.log(response);
});

ic.api('autocomplete', {query: 'madrid'}, function(error, response) {
  console.log(response);
});

ic.api('nearby', {lat: -6.1744, lng: 106.8294, distance: 1000}, function(error, response) {
  console.log(response);
});

ic.api('timetable', {code: 'LGA', type: 'departure'}, function(error, response) {
  console.log(response);
});

License

This project is licensed under the MIT license.

Keywords

FAQs

Package last updated on 21 Apr 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc