MBTA-api

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.

Install

npm i mbta-api

Usage

ts

import { Client } from 'mbta-api';

const client = new Client();

async function getAlerts() {
    const redLineAlerts = await client.getAlerts('Red');
    redLineAlerts[0].cause;
}