This Node.js package is a collection of useful functions for searching through and filtering Slippi replays.
With Node.js installed, simply run the following command to add the package to your project.
npm install slippi-search
This will also add Project Slippi's @slippi/slippi-js as a dependency.
- Create a fresh directory on your disk
- Inside this new directory, create a file called
- Fill the
search.jsfile with the following contents:
constwithGamesFromDirisValidGamewithMatchingFramessortedFrames} = ;const stages = ;// Define game criteriaconst gameCriteria =stageId: stagesSTAGE_BATTLEFIELD stagesSTAGE_DREAM_LANDplayers:characterId: 0 20 // Captain Falcon, FalcocharacterId: 19 // SheikisPAL: false true // Can also just omitisTeams: false;// Define frame criteriaconst frameCriteria =players:pre:playerIndex: 1percent: 10 20 // Between 10 and 20 percentfacingDirection: -1;const validGames = ;const validFrames = ;// With each game in the directory;
- Change the "replays" path to some directory that holds some of your slp files.
- Browse to the directory from the command line and run the command:
npm install slippi-search. This should create a
node_modulesdirectory in the folder.
- Run the command:
node search.js. This will run the script above to search through and print data about the replay files that met the criteria in that directory.
This software is released under the terms of MIT license.