1.0.0 • Published 8 years ago

irish-lotto v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

irish-lotto

Nodejs module wrapper for the Irish/EuroMillions Lotto.

var lotto = require('irish-lotto')

lotto.getProjectedJackpot('Lotto', function(result) {
  console.log(result);
})

Installation

$ npm install irish-lotto

Tests

To run the test suite, first install the dependencies, then run npm test:

$ npm install
$ npm test

Features

This module returns 3 web service calls from the resultsservice.lottery.ie

// @param string Name of lottery
lotto.getProjectedJackpot('Lotto', function(result) {
  console.log(result, null, 2);
})
// @param string Name of lottery
// @param number Number of Results to be returned
lotto.getResults('EuroMillions', 2, function(result) {
  console.log(result, null, 2);
})
// @param string Name of lottery
// @param string Draw Date to be returned
lotto.getResultsForDate('Lotto', '2016-10-12',  function(result) {
  console.log(result, null, 2);
})

Sample URLs for service