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

epl_prediction

v1.0.2

Published

english premiere league match prediction based on league performance

Downloads

3

Readme

epl_prediction

english premiere league match prediction based on league performance

Installation

npm i epl_prediction

Demo

Local demo:

git clone https://github.com/afifudinmtop/epl_prediction.git
cd epl_prediction
npm install && node test.js

// it will return the probability of teams => leeds 33% VS liverpool 66%
// please change the teams variable to get different result

Examples head to head

const app = require("epl_prediction");

const teams = [
  "arsenal", //0
  "aston villa", //1
  "bournemouth", //2
  "brentford", //3
  "brighton", //4
  "chelsea", //5
  "crystal palace", //6
  "everton", //7
  "fulham", //8
  "leeds united", //9
  "leicester city", //10
  "liverpool", //11
  "manchester city", //12
  "manchester united", //13
  "newcastle united", //14
  "nottingham forest", //15
  "southampton", //16
  "tottenham hotspur", //17
  "west ham united", //18
  "wolverhampton wanderers", //19
];

app.predict(teams[5], teams[0]).then(function (result) {
  console.log(result);
});

// it will return on json:
/*
{
  team1: 'chelsea',
  probability1: '29%',
  team2: 'arsenal',
  probability2: '70%'
}

*/

// you can see the example files on test.js

Examples weekend football fixtures prediction

const app = require("epl_prediction");

app.weekly().then(function (result) {
  console.log(result);
});

// it will return this weekend football fixtures prediction on json
/*
[
  {
    team1: 'Leeds United',
    probability1: '64%',
    team2: 'AFC Bournemouth',
    probability2: '35%'
  },
  {
    team1: 'Manchester City',
    probability1: '77%',
    team2: 'Fulham',
    probability2: '22%'
  },
  {
    team1: 'Nottingham Forest',
    probability1: '24%',
    team2: 'Brentford',
    probability2: '75%'
  },
  {
    team1: 'Wolverhampton Wanderers',
    probability1: '19%',
    team2: 'Brighton & Hove Albion',
    probability2: '80%'
  },
  {
    team1: 'Everton',
    probability1: '52%',
    team2: 'Leicester City',
    probability2: '47%'
  },
  {
    team1: 'Chelsea',
    probability1: '29%',
    team2: 'Arsenal',
    probability2: '70%'
  },
  {
    team1: 'Aston Villa',
    probability1: '34%',
    team2: 'Manchester United',
    probability2: '65%'
  },
  {
    team1: 'Southampton',
    probability1: '18%',
    team2: 'Newcastle United',
    probability2: '81%'
  },
  {
    team1: 'West Ham United',
    probability1: '51%',
    team2: 'Crystal Palace',
    probability2: '48%'
  },
  {
    team1: 'Tottenham Hotspur',
    probability1: '51%',
    team2: 'Liverpool',
    probability2: '48%'
  }
]

*/

// you can see the example files on weekly.js

License

epl_prediction is open source software licensed as MIT.