Skip to content

An easier to use wrapper for the OC Transpo API.

Notifications You must be signed in to change notification settings

nitro404/oc-transpo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OC Transpo

NPM version Build Status Coverage Status Known Vulnerabilities Dependencies Downloads Install Size Contributors Pull Requests Welcome

This module is currently incompatible with the latest version of OC Transpo's RESTful API.

A wrapper for the OC Transpo API.

This module is unofficial and is in no way affiliated with OC Transpo.

Server-Side Usage

const transit = require("oc-transpo");

transit.setup({
	key: "42361af08a221433b423a1e662175fa4",
	appID: "ddc42a1b"
});

transit.getStopInformation(3000, function(error, data) {
	if(error) {
		return console.error(error);
	}

	return console.log(data);
});

Installation

To install this module:

npm install oc-transpo

Building

To build the distribution files for this module:

npm run build

or

gulp build