UNPKG
node-cta
Version:
latest (0.0.1)
0.0.1
A node wrapper for the CTA's (Chicago Transit Authority) bus and train tracker APIs
node-cta
/
module.js
9 lines
(8 loc)
•
223 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
BusApi
from
'./api/bus'
;
import
TrainApi
from
'./api/bus'
;
export
default
class
CTA
{
constructor
(
busKey, trainKey
) {
this
.
busApi
=
new
BusApi
(busKey);
this
.
trainApi
=
new
TrainApi
(trainKey); } }