# mbta-api

> A Basic MBTA api

Latest version **0.0.10** (published 2019-11-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install mbta-api
pnpm add mbta-api
yarn add mbta-api
bun add mbta-api
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.10 |
| Published | 2019-11-02 |
| First published | 2019-08-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 74.1 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Greg Frasco |
| Maintainers | gregfrasco |

## Links

- npm: https://www.npmjs.com/package/mbta-api
- Repository: https://github.com/gregfrasco/mbta-api
- Issues: https://github.com/gregfrasco/mbta-api/issues
- npm.io page: https://npm.io/package/mbta-api

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.19.0
- [ts-jsonapi](https://npm.io/package/ts-jsonapi.md) ^2.1.2

## Recent versions

- 0.0.10 (latest) — 2019-11-02
- 0.0.9 — 2019-11-01
- 0.0.8 — 2019-09-14
- 0.0.7 — 2019-09-13
- 0.0.6 — 2019-09-13
- 0.0.5 — 2019-09-13
- 0.0.4 — 2019-08-14
- 0.0.3 — 2019-08-14

## README

# 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

```bash
npm i mbta-api
```

## Usage

ts
```typescript
import { Client } from 'mbta-api';

const client = new Client();

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

---
_Source: https://npm.io/package/mbta-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
