npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

soccer-history

v1.1.5

Published

A Node.JS module that brings back the results of past overseas football

Downloads

2

Readme

SoccerHistory

해외 축구 경기 결과를 불러와주는 라이브러리입니다.

npm version Build Status GitHub license GitHub stars HitCount

여러 해외 축구 리그 경기 결과를 조회할 수 있는 라이브러리입니다! 지원하는 리그는 다음과 같습니다.

  • 프리미어리그
  • 라리가
  • 분데스
  • 세리에 A
  • 리그 1
  • 챔피언스리그
  • 유로파리그
  • FA컵
  • EFL컵
  • 코파델레이

2010년~의 경기 결과만 지원합니다

사용 예제

import SoccerHistory from "soccer-history";

let sc = new SoccerHistory();
sc.getHistory("epl", new Date("2020/1/11")).then((data) => console.log(data));
/*
[ { homeTeamName: '셰필드',
    awayTeamName: '웨스트햄',
    homeTeamScore: '1',
    awayTeamScore: '0',
    gameDate: '2020-01-11',
    state: '종료' },
  { homeTeamName: '크리스탈 팰리스',
    awayTeamName: '아스널',
    homeTeamScore: '1',
    awayTeamScore: '1',
    gameDate: '2020-01-11',
    state: '종료' } ]
*/

sc.getHistory("champs", new Date("2020/1/10")).then((data) => console.log(data));
/* [] */

개발 환경 설정

npm install soccer-history
or
yarn add soccer-history

Test

npm run test

or

yarn test

사용 방법

class SoccerHistory

getHistory(leagueType: League, date: Date)

리그와 날짜를 넘겨주면 해당 경기 결과를 불러옵니다.

2010~현재까지의 경기를 불러올 수 있습니다

Ex)

[{ homeTeamName: '크리스탈 팰리스',
    awayTeamName: '아스널',
    homeTeamScore: '1',
    awayTeamScore: '1',
    gameDate: '2020-01-11',
    state: '종료' }]

만약 해당 날에 경기가 없다면 빈 배열([])을 반환합니다

League

|리그 이름|League| |:---:|:---:| |프리미어리그|epl| |라리가|primera| |분데스|bundesliga| |세리에 A|seria| |리그 1|ligue1| |챔피언스리그|champs| |유로파리그|europa| |FA컵|facup| |EFL컵|carlingcup| |코파델레이|copadelrey|

업데이트 내역

  • 1.1.4 예제 추가
  • 1.1.3 test 폴더 이동
  • 1.1.2 @types 추가
  • 1.1.1 의존성 잘못 설정된 부분 수정
  • 1.0.0 초기 버전 배포(이전 버전에서 모듈 export 제대로 안되던 문제 수정)

정보

MIT 라이센스를 준수하며 LICENSE에서 자세한 정보를 확인할 수 있습니다.