AT.JS
A node.js library for interfacing with the current Auckland Transport API
Installation
npm install aucklandtransport.js
Example usage
import AT from "aucklandtransport.js";
// promise
AT.getStops().then((stops) => {
console.log(stops);
});
// async
let stops = await AT.getStops();
console.log(stops);