vatsim-stats
v0.0.1
Published
a basic wrapper of the Vatsim API for access to some useful Vatsim data
Downloads
2
Readme
Vatsim Stats
This is a basic wrapper for the Vatsim API, which is not particularly well documented. Documentation and development for this package is still in progress but over 30 usefull endpoints are planned, giving you access to the full scope of data that the Vatsim platform has to offer.
Installation
From the project directory, run npm install vatsim-stats
. Make sure npm
is already configured for your project
Endpoints
Metadata
Unique Users
This function returns an integer representing all unique users currently connected to the Vatsim network.
const vatsim_stats = require('vatsim-stats');
vatsim_stats.metadata.getUniqueUsers().then((response) => {
console.log(response);
})
Airports
Get Full Airport MetaData
This function simply gets all metadata in JSON format including arrivals, departures, and amount of controllers.
const vatsim_stats = require('vatsim-stats');
vatsim_stats.apt_data.getAllAiportData("KSFO").then((response) => {
console.log(response); // json object
})