Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ogoodness/slippi-cli
CLI Wrapper for the Slippi-JS node module
https://github.com/ogoodness/slippi-cli
cli slippi slippi-cli slp smash-bros
Last synced: about 1 month ago
JSON representation
CLI Wrapper for the Slippi-JS node module
- Host: GitHub
- URL: https://github.com/ogoodness/slippi-cli
- Owner: OGoodness
- Created: 2021-02-17T20:32:22.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-05T22:44:09.000Z (almost 4 years ago)
- Last Synced: 2024-11-07T05:09:37.256Z (about 2 months ago)
- Topics: cli, slippi, slippi-cli, slp, smash-bros
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/slippi-cli
- Size: 2.06 MB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
slippi-cli
====
Slippi-cli Description[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/slippi-cli.svg)](https://npmjs.org/package/slippi-cli)
[![Codecov](https://codecov.io/gh/OGoodness/slippi-cli/branch/master/graph/badge.svg)](https://codecov.io/gh/OGoodness/slippi-cli)
[![Downloads/week](https://img.shields.io/npm/dw/slippi-cli.svg)](https://npmjs.org/package/slippi-cli)
[![License](https://img.shields.io/npm/l/slippi-cli.svg)](https://github.com/OGoodness/slippi-cli/blob/master/package.json)* [Usage](#usage)
* [Commands](#commands)# Usage
```sh-session
$ 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
...
```
![](etc/media/Slippi-cli-demo.gif)# Commands
* [`slp help [COMMAND]`](#slp-help-command)
* [`slp stats [FILE]`](#slp-stats-file)## `slp help [COMMAND]`
display help for slp
```
USAGE
$ slp help [COMMAND]ARGUMENTS
COMMAND command to show help forOPTIONS
--all see all commands in CLI
```_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.2/src/commands/help.ts)_
## `slp stats [FILE]`
describe the command here
```
USAGE
$ slp stats [FILE]ARGUMENTS
FILE (a|b) [default: world] output fileOPTIONS
-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](https://github.com/OGoodness/slippi-cli/blob/v0.0.5/src/commands/stats.ts)_