New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

trimet-api-client

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trimet-api-client

A Promise-based TriMet API client for transit arrival times in Portland, OR.

  • 2.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-73.68%
Maintainers
1
Weekly downloads
 
Created
Source

API wrapper for TriMet, written in Node. Note: This is a work-in-progress. Will be uploading it as an official NPM package soon.

NPM package: https://www.npmjs.com/package/trimet-api-client

Usage

var TriMetAPI = require('trimet-api');

var TriMetAPIInstance = new TriMetAPI(YOUR_TRIMET_API_KEY);

Get next arrival for bus at given stop

TriMetAPIInstance.getNextArrivalForBus(stopID, busID, function(arrival){ var minutesRemaining = arrival.getMinutesUntilArrival(); console.log("Bus " + busID + " arriving in " + minutesRemaining + " min"); });

Building

To make changes and build them to the "dist" folder, use:

npm install
npm run build

Keywords

FAQs

Package last updated on 13 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc