JSPM

  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q37317F
  • License ISC

Parse match info from livesoccertv

Package Exports

  • livesoccertv-parser

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (livesoccertv-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

livesoccertv-parser npm

© All rights reserved to Live soccer TV

Install

npm install livesoccertv-parser

Usage

The parser works with promises:

const matches = require('livesoccertv-parser')
console.log(await matches('spain', 'real-madrid')) //=> [{...}, {...}, ...]

Match object:

Match {
  played: false,
  competition: 'Supercopa de España',
  date: 'August 13',
  time: '16:00',
  game: 'Barcelona vs Real Madrid',
  tvs:
    [
      'TeleCinco',
      'TV3',
      'Radio Barca'
    ]
}

API

  • Timezone

By default, the timezone is America/New_York. You can set your own with:

matches('spain', 'real-madrid', { timezone: 'Europe/Madrid' })

Contribute

JavaScript Style Guide

Feel free to open an issue or a PR.

License

ISC license

Author

me
© 2017 Pablo Varela