Code Monkey home page Code Monkey logo

slippi-cli's Introduction

slippi-cli

Slippi-cli Description

oclif Version Codecov Downloads/week License

Usage

$ npm install -g slippi-cli
$ slp COMMAND
running command...
$ slp (-v|--version|version)
slippi-cli/0.0.5 linux-x64 node-v10.19.0
$ slp --help [COMMAND]
USAGE
  $ slp COMMAND
...

Commands

slp help [COMMAND]

display help for slp

USAGE
  $ slp help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

slp stats [FILE]

describe the command here

USAGE
  $ slp stats [FILE]

ARGUMENTS
  FILE  (a|b) [default: world] output file

OPTIONS
  -d, --dir=dir        [default: ] Directory(s) to scan and get stats from
  -f, --file=file      [default: ] File(s) to pull stats from
  -o, --output=output  File to save JSON output
  -p, --path=path      Path to get value in JSON output
  -s, --silent         If you do not want the loading bar to show
  -t, --time           Calculate Total Time from File(s)

EXAMPLE

       $ slp stats -d slippi-dir -o output.json
         .... (saves the output to output.json)
       $ slp stats -d slippi-dir -f game.slp -t
       {
         "frames": 17838451,
         "seconds": 297307.51666666666,
         "minutes": 4955.125277777778,
         "hours": 82.5854212962963,
         "days": 3.4410592206790125,
         "averageGame": "1.9868184754521965 Minutes Per Game",
         "fileCount": 2494
       }

       $ slp stats -f game.slp -p 'overall[0].inputCounts'
       {
         "inputCounts": {
           "buttons": 16,
           "triggers": 5,
           "cstick": 0,
           "joystick": 15,
           "total": 36
         }
       }

See code: src/commands/stats.ts

slippi-cli's People

Contributors

ogoodness avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.