@buzzr/dfs-cli
v1.0.0
Published
Command-line wrapper around @buzzr/dfs-engine — grade a DFS entry from JSON fixtures without writing code.
Readme
@buzzr/dfs-cli
Command-line wrapper around @buzzr/dfs-engine.
Grade a DFS entry from JSON fixtures without writing any TypeScript.
Install
npm install -g @buzzr/dfs-cliUsage
dfs-grade ./entry.json --gamelogs ./gamelogs.jsonentry.json is a DfsEntryInput. gamelogs.json is a map of legId to an
array of PlayerGameLogEntryShape rows. The settlement result is printed to
stdout as pretty JSON; non-zero exit code on any error.
Programmatic API
import { runGrade } from '@buzzr/dfs-cli';
const result = await runGrade({
entry,
gameLogsByLegId: { 'leg-1': [gameLogRow] },
});License
MIT
