Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@benhawley7/fut-search

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@benhawley7/fut-search

Module for searching for players in FIFA Ultimate Team CSV Data.

  • 2.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Module for searching players in FIFA Ultimate Team CSV Data.

Installing

Via npm:

npm i @benhawley7/fut-search

Data

You will need a local set of FUT CSV data to point the module towards.

The CSV needs the following format:

nameclubleaguepositionrevisionratingpaceshootingpassingdribblingdefendingphysicality
Anthony MartialManchester UnitedPremier LeagueLWNormal83898172874171

note: Additional headers or uppercase headers should not cause errors.

The game CSVs need to be in an accessible folder with the following naming convention: FIFA{year}.csv i.e. FIFA20.csv or FIFA19.csv.

By default, the module will look for the CSVs in /data

Example

const {FUTSearch} = require("@benhawley7/fut-search");
const path = require("path");

const fut = new FUTSearch(
    path.join(__dirname, "my-data", "FIFA20.csv") // Where is your CSV data stored?
)

// Find a player with given attributes
fut.findPlayer({
    name: "Rashford",
    club: "Manchester United",
    revision: "Normal"
}).then(player => {
    // {
    //     name: 'Marcus Rashford',
    //     club: 'Manchester United',
    //     position: 'ST',
    //     revision: 'Normal',
    //     league: 'Premier League',
    //     rating: 83,
    //     pace: 92,
    //     shooting: 82,
    //     passing: 73,
    //     dribbling: 85,
    //     defending: 45,
    //     physicality: 77
    // }
})

// List Players with shared attributes
fut.listPlayers({
    position: "ST",
    rating: 89,
    league: "Premier League",
}).then(players => {
    // [
    //     {
    //         name: 'Sergio Agüero',
    //         club: 'Manchester City',
    //         position: 'ST',
    //         revision: 'Normal',
    //         league: 'Premier League',
    //         rating: 89,
    //         pace: 80,
    //         shooting: 90,
    //         passing: 77,
    //         dribbling: 88,
    //         defending: 33,
    //         physicality: 74
    //     },
    //     {
    //         name: 'Harry Kane',
    //         club: 'Tottenham Hotspur',
    //         position: 'ST',
    //         revision: 'Normal',
    //         league: 'Premier League',
    //         rating: 89,
    //         pace: 70,
    //         shooting: 91,
    //         passing: 79,
    //         dribbling: 80,
    //         defending: 47,
    //         physicality: 83
    //     }
    //     ...
    // ]
});

Known Issues

  • Goalkeepers not currently supported

Keywords

FAQs

Package last updated on 24 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc