Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)