manchester-united-players

1.0.9 • Public • Published

Manchester United Players

Manchester United's current first team players' information. (Last Update: 15th January 2024)

Install

$ npm install manchester-united-players

Usage

const mufcPlayer = require("manchester-united-players");

Getting ALL players' information

mufcPlayer.all;
// Output: [{"number": 2,"name": "Victor Lindelof", …} …]

Getting ALL players' names

mufcPlayer.allNames();
// Output: ['Altay Bayindir', 'Victor Lindelof', 'Harry Maguire' …]

Getting specific player's NAME

Params: Squad Number

mufcPlayer.name(8);
// Output: 'Bruno Fernandes'

Getting specific player's DATE OF BIRTH

Params: Squad Number

mufcPlayer.dob(29);
// Output: '1997-11-26'

Getting specific player's AGE

Params: Squad Number

mufcPlayer.age(5);
// Output: '30'

Getting specific player's POSITION

Params: Squad Number

mufcPlayer.position(19);
// Output: 'Centre-back'

Getting specific player's NATIONALITY

Params: Squad Number

mufcPlayer.nationality(2);
// Output: 'Sweden'

Getting specific player's NUMBER

Params: Player's Full Name

mufcPlayer.number("masonmount");
// Output: 7

mufcPlayer.number("ALEJANDRo      GARnaCHo");
// Output: 17

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i manchester-united-players

      Weekly Downloads

      9

      Version

      1.0.9

      License

      MIT

      Unpacked Size

      9.37 kB

      Total Files

      5

      Last publish

      Collaborators

      • rooonald