manchester-united-players
v1.0.9
Published
Manchester United's current first team players' information.
Downloads
15
Maintainers
Readme
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