An mbta api that I am building out. This is a work in progress. If need a function, open an issue or make a pull request.
npm i mbta-api
ts
import { Client } from 'mbta-api';
const client = new Client();
async function getAlerts() {
const redLineAlerts = await client.getAlerts('Red');
redLineAlerts[0].cause;
}