mbta-api
TypeScript icon, indicating that this package has built-in type declarations

0.0.10 • Public • Published

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;
}

Readme

Keywords

none

Package Sidebar

Install

npm i mbta-api

Weekly Downloads

2

Version

0.0.10

License

MIT

Unpacked Size

75.8 kB

Total Files

62

Last publish

Collaborators

  • gregfrasco