0.1.0 • Published 3 years ago

cotrip-feed v0.1.0

Weekly downloads
3
License
GPL-3.0
Repository
github
Last release
3 years ago

cotrip-feed

This module provides a lightweight programmatic interface to the cotrip.org XML data feeds. It pulls the XML data and converts it into a JavaScript object.

Usage

First, sign up for an API key on the COtrip website.

// Initialize the feed with your COtrip API key
const feed = require('cotrip-feed')({
  apiKey: 'YOUR_API_KEY'
});

// Print all alerts
feed.alerts(alerts => {
  console.log(alerts);
});

Resources

0.1.0

3 years ago