Skip to content
No description, website, or topics provided.
JavaScript
Branch: master
Clone or download
Pull request Compare This branch is 1 commit ahead, 11 commits behind hcphoon01:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
.travis.yml
LICENSE
README.md
handler.js
package-lock.json
package.json

README.md

VATSIM Data Handler Build Status Coverage Status

=========

A data handler for the VATSIM status system coded in JavaScript

Installation

npm install vatsim-data-handler

Usage

const DataHandler = require('vatsim-data-handler');
const handler = new DataHandler();

console.log(handler.getClientCount());

This would log the number of clients connected to the VATSIM network

Available methods

  • getClientCount() - Returns the number of clients connected to the VATSIM network
  • getPilotCount() - Returns the number of pilots connected to the VATSIM network
  • getControllerCount() - Returns the number of controllers connected to the VATSIM network
  • getAirportInfo(airport) - Returns the details of pilots into or out of a certain airport along with the controllers controlling that airport, the airport argument is a 4 letter ICAO code
  • getPopularAirports() - Returns a list of the top 10 airports for arriving and departing aircraft

Tests

npm test

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

You can’t perform that action at this time.