bbdata-cli 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/bbdata.js +935 -30
- package/dist/bin/bbdata.js.map +1 -1
- package/dist/src/index.d.ts +52 -1
- package/dist/src/index.js +875 -31
- package/dist/src/index.js.map +1 -1
- package/dist/templates/queries/hitter-raw-bip.ts +65 -0
- package/dist/templates/queries/hitter-zone-grid.ts +90 -0
- package/dist/templates/queries/index.ts +27 -24
- package/dist/templates/queries/pitcher-raw-pitches.ts +62 -0
- package/dist/templates/queries/trend-rolling-average.ts +15 -3
- package/dist/templates/reports/advance-sp.hbs +66 -60
- package/dist/templates/reports/pro-hitter-eval.hbs +77 -65
- package/dist/templates/reports/pro-pitcher-eval.hbs +81 -69
- package/package.json +68 -63
- package/src/templates/reports/advance-sp.hbs +66 -60
- package/src/templates/reports/pro-hitter-eval.hbs +77 -65
- package/src/templates/reports/pro-pitcher-eval.hbs +81 -69
|
@@ -1,69 +1,81 @@
|
|
|
1
|
-
# Pro Pitcher Evaluation: {{player}}
|
|
2
|
-
|
|
3
|
-
**Season:** {{season}} | **Audience:** {{audience}} | **Generated:** {{date}}
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Header
|
|
8
|
-
|
|
9
|
-
| Field | Value |
|
|
10
|
-
|-------|-------|
|
|
11
|
-
| Player | {{player}} |
|
|
12
|
-
| Season | {{season}} |
|
|
13
|
-
| Sources | {{sources}} |
|
|
14
|
-
|
|
15
|
-
## Pitch Arsenal
|
|
16
|
-
|
|
17
|
-
{{#if data.pitcher-arsenal}}
|
|
18
|
-
| Pitch Type | Usage % | Avg Velo | Avg Spin | H Break | V Break | Whiff % | Put Away % | Pitches |
|
|
19
|
-
|------------|---------|----------|----------|---------|---------|---------|------------|---------|
|
|
20
|
-
{{#each data.pitcher-arsenal}}
|
|
21
|
-
| {{this.[Pitch Type]}} | {{this.[Usage %]}} | {{this.[Avg Velo]}} | {{this.[Avg Spin]}} | {{this.[H Break]}} | {{this.[V Break]}} | {{this.[Whiff %]}} | {{this.[Put Away %]}} | {{this.Pitches}} |
|
|
22
|
-
{{/each}}
|
|
23
|
-
{{else}}
|
|
24
|
-
*Arsenal data not available*
|
|
25
|
-
{{/if}}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
{{
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
{{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
{{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
*
|
|
1
|
+
# Pro Pitcher Evaluation: {{player}}
|
|
2
|
+
|
|
3
|
+
**Season:** {{season}} | **Audience:** {{audience}} | **Generated:** {{date}}
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Header
|
|
8
|
+
|
|
9
|
+
| Field | Value |
|
|
10
|
+
|-------|-------|
|
|
11
|
+
| Player | {{player}} |
|
|
12
|
+
| Season | {{season}} |
|
|
13
|
+
| Sources | {{sources}} |
|
|
14
|
+
|
|
15
|
+
## Pitch Arsenal
|
|
16
|
+
|
|
17
|
+
{{#if data.pitcher-arsenal}}
|
|
18
|
+
| Pitch Type | Usage % | Avg Velo | Avg Spin | H Break | V Break | Whiff % | Put Away % | Pitches |
|
|
19
|
+
|------------|---------|----------|----------|---------|---------|---------|------------|---------|
|
|
20
|
+
{{#each data.pitcher-arsenal}}
|
|
21
|
+
| {{this.[Pitch Type]}} | {{this.[Usage %]}} | {{this.[Avg Velo]}} | {{this.[Avg Spin]}} | {{this.[H Break]}} | {{this.[V Break]}} | {{this.[Whiff %]}} | {{this.[Put Away %]}} | {{this.Pitches}} |
|
|
22
|
+
{{/each}}
|
|
23
|
+
{{else}}
|
|
24
|
+
*Arsenal data not available*
|
|
25
|
+
{{/if}}
|
|
26
|
+
|
|
27
|
+
{{#if graphs.movementChart}}
|
|
28
|
+
### Movement Plot
|
|
29
|
+
|
|
30
|
+
{{{svgOrEmpty graphs.movementChart}}}
|
|
31
|
+
{{/if}}
|
|
32
|
+
|
|
33
|
+
## Performance Profile
|
|
34
|
+
|
|
35
|
+
*Season statistics to be populated from FanGraphs data (ERA, FIP, xFIP, SIERA, K-BB%, WAR)*
|
|
36
|
+
|
|
37
|
+
## Splits Analysis
|
|
38
|
+
|
|
39
|
+
{{#if data.pitcher-handedness-splits}}
|
|
40
|
+
| vs | PA | AVG | SLG | K % | BB % | Avg EV | Whiff % |
|
|
41
|
+
|----|-----|-----|-----|-----|------|--------|---------|
|
|
42
|
+
{{#each data.pitcher-handedness-splits}}
|
|
43
|
+
| {{this.vs}} | {{this.PA}} | {{this.AVG}} | {{this.SLG}} | {{this.[K %]}} | {{this.[BB %]}} | {{this.[Avg EV]}} | {{this.[Whiff %]}} |
|
|
44
|
+
{{/each}}
|
|
45
|
+
{{else}}
|
|
46
|
+
*Splits data not available*
|
|
47
|
+
{{/if}}
|
|
48
|
+
|
|
49
|
+
## Trend Analysis
|
|
50
|
+
|
|
51
|
+
{{#if data.pitcher-velocity-trend}}
|
|
52
|
+
| Month | Avg Velo | Max Velo | Δ vs Prior | Pitches | Flag |
|
|
53
|
+
|-------|----------|----------|------------|---------|------|
|
|
54
|
+
{{#each data.pitcher-velocity-trend}}
|
|
55
|
+
| {{this.Month}} | {{this.[Avg Velo]}} | {{this.[Max Velo]}} | {{this.[Δ vs Prior]}} | {{this.Pitches}} | {{this.Flag}} |
|
|
56
|
+
{{/each}}
|
|
57
|
+
{{else}}
|
|
58
|
+
*Velocity trend data not available*
|
|
59
|
+
{{/if}}
|
|
60
|
+
|
|
61
|
+
{{#if graphs.rollingChart}}
|
|
62
|
+
### Rolling Trend Chart
|
|
63
|
+
|
|
64
|
+
{{{svgOrEmpty graphs.rollingChart}}}
|
|
65
|
+
{{/if}}
|
|
66
|
+
|
|
67
|
+
## Risk Assessment
|
|
68
|
+
|
|
69
|
+
*To be filled by evaluator: injury history, mechanical concerns, workload flags*
|
|
70
|
+
|
|
71
|
+
## Comparable Player
|
|
72
|
+
|
|
73
|
+
*To be filled by evaluator: statistical comp to current/recent MLB pitcher*
|
|
74
|
+
|
|
75
|
+
## Role Projection
|
|
76
|
+
|
|
77
|
+
*To be filled by evaluator: SP1-5 / Setup / Closer / Middle Relief + Acquire / Pass / Monitor recommendation*
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
*Generated by bbdata CLI · Data sources: {{sources}}*
|