Announcing Niagara Beaches CLI

As part of a larger project I am working on, I created a Node.js module to get beach reports for Niagara Region beaches, including the somewhat famous, Lakeside Park.

The module can be used as a library in any node project. You can also install Niagara Beaches globally, by running npm install niagara-beaches --global. This will allow you to run niagara-beaches from your command line to receive an up-to-date list of beaches and their latest status updates.

Here's an example of how to use the module in a Node.js script.

var beaches = require('niagara-beaches');

beaches.get(function(err, data) {
  if (err) {
    return console.log(err);
  }

  for (var i = 0, max = data.length; i < max; i++) {
    console.log(data[i]);
  }
});

Visit the Official Niagara Beaches Web Page for more information.