Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abranhe/cristiano-ronaldo
Get Cristiano Ronaldo' Stats
https://github.com/abranhe/cristiano-ronaldo
cr7 cristiano-ronaldo football football-data soccer
Last synced: about 2 months ago
JSON representation
Get Cristiano Ronaldo' Stats
- Host: GitHub
- URL: https://github.com/abranhe/cristiano-ronaldo
- Owner: abranhe
- License: mit
- Created: 2020-01-14T23:24:44.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-15T00:09:21.000Z (almost 5 years ago)
- Last Synced: 2024-10-12T12:15:03.055Z (3 months ago)
- Topics: cr7, cristiano-ronaldo, football, football-data, soccer
- Language: JavaScript
- Homepage: https://p.abranhe.com/cristiano-ronaldo
- Size: 5.86 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
- License: license
Awesome Lists containing this project
README
# cristiano-ronaldo [![Github](https://github.com/abranhe/cristiano-ronaldo/workflows/build/badge.svg)](https://github.com/abranhe/cristiano-ronaldo) [![Travis](https://travis-ci.com/abranhe/cristiano-ronaldo.svg?branch=master)](https://travis-ci.com/abranhe/cristiano-ronaldo) [![License](https://img.shields.io/github/license/abranhe/cristiano-ronaldo.svg)](https://github.com/abranhe/cristiano-ronaldo/blob/master/license) [![npm](https://img.shields.io/npm/v/cristiano-ronaldo.svg?logo=npm)](https://npmjs.org/cristiano-ronaldo)
> 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](https://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
```js
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](https://abranhe.com)