Wondering what’s next for npm?Check out our public roadmap! »

livesoccertv-parser

5.3.1 • Public • Published

livesoccertv-parser

© All rights reserved to Live soccer TV

Parse games info from livesoccertv

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 {
  live: false
  played: true,
  competition: 'Supercopa de España',
  date: 'August 13',
  time: '4:00 PM',
  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' })
matches('england', 'arsenal', { timezone: 'Europe/London' })

Contribute

JavaScript Style Guide

Feel free to open an issue or a PR.

License

MIT

Related

More at pablo.im

  • microsoccer: Microservice to fetch soccer games schedules and tv channels.

Author

me
© 2018 Pablo Varela

Install

npm i livesoccertv-parser

DownloadsWeekly Downloads

7

Version

5.3.1

License

MIT

Unpacked Size

145 kB

Total Files

33

Last publish

Collaborators

  • avatar