vat-data

1.0.6 • Public • Published

VAT-DATA

NPM Package that you can use to pull data from raw VATSIM API Endpoints with ease.

Installation

Install the package via: npm i vat-data And this should install package without any errors

Example

Here is an example of using the VAT-DATA package.

const  Handler  =  require('vat-data')
 
const  client  =  new  Handler();
 
client.getRecentConnection('1475111').then(connection  => {
const  ID  =  connection.id; //int: flight id on the network
const  vatID  =  connection.vatsim_id; //string: cid
const  connectionType  =  connection.type; //int: Referring to Pilot: 1 or ATC: 2
const  connectionRating  =  connection.rating; //Referring to Pilot/Observer, S1 etc but as integers.
const  connectionCallsign  =  connection.callsign  //string: flight callsign
 
console.log(connection);
 
});
 

This is a basic example of pulling the most recent VATSIM Client connection from a user. This is a pretty new endpoint aswell.

Package Sidebar

Install

npm i vat-data

Weekly Downloads

1

Version

1.0.6

License

MIT

Unpacked Size

3.28 kB

Total Files

5

Last publish

Collaborators

  • hazz