Skip to content

abranhe/cristiano-ronaldo

Repository files navigation

cristiano-ronaldo Github Travis License npm

Stats about Cristiano Ronaldo

Cristiano Ronaldo is one of the best players in football (soccer) history. This package give you live stats about Ronaldo fetching the data from messivsronaldo.net.

Any changes on the website will affect whether this package works or not, so if you find any issues while using this package please open an issue imidialty.

Install

$ npm install cristiano-ronaldo
Other options?
npm
$ npm install cristiano-ronaldo
yarn
$ yarn add cristiano-ronaldo
Github Registry
$ npm install abranhe@cristiano-ronaldo

Usage

import cristianoRonaldo from 'cristiano-ronaldo';
  
(async () => {
  const cr7 = await cristianoRonaldo();
  // {
  //   goals: 716,
  //   assists: 220,
  //   apps: 991,
  //   penaltis: 118,
  //   penaltisMissed: 23,
  //   hatTricks: 56,
  //   goalRatio: 0.72
  // }
})();

API

cristianoRonaldo()

Type: string

Returns live stats about Cristiano Ronaldo.

License

MIT © Abraham Hernandez