oc-transpo

A wrapper for the OC Transpo API.

Usage no npm install needed!

<script type="module">
  import ocTranspo from 'https://cdn.skypack.dev/oc-transpo';
</script>

README

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