=========
A data handler for the VATSIM status system coded in JavaScript
npm install vatsim-data-handler
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
getClientCount()
- Returns the number of clients connected to the VATSIM networkgetPilotCount()
- Returns the number of pilots connected to the VATSIM networkgetControllerCount()
- Returns the number of controllers connected to the VATSIM networkgetAirportInfo(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 codegetPopularAirports()
- Returns a list of the top 10 airports for arriving and departing aircraft
npm test
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.