fifa-wc26 0.1.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/LICENSE +21 -0
- package/README.md +59 -0
- package/dist/cli.js +1289 -0
- package/package.json +78 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Valerian Pereira
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# wc26
|
|
2
|
+
|
|
3
|
+
FIFA World Cup 2026 CLI: fixtures, live scores, group standings, ASCII bracket, team lookup.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm i -g fifa-wc26
|
|
9
|
+
# or run without install:
|
|
10
|
+
npx fifa-wc26 next
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
The package name is `fifa-wc26`; the binary it installs is `wc26`.
|
|
14
|
+
|
|
15
|
+
## Quick start
|
|
16
|
+
|
|
17
|
+
No key required for the default providers (`espn`, `thesportsdb`).
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
wc26 fixtures --team ARG --from today
|
|
21
|
+
wc26 next -n 3
|
|
22
|
+
wc26 live --watch
|
|
23
|
+
wc26 groups A
|
|
24
|
+
wc26 bracket
|
|
25
|
+
wc26 team BRA
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Optional: bring your own paid `thesportsdb` key for higher rate limits:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
wc26 config set apiKey thesportsdb <YOUR_KEY>
|
|
32
|
+
# or via env:
|
|
33
|
+
export WC26_THESPORTSDB_KEY=...
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Global flags
|
|
37
|
+
|
|
38
|
+
- `--json` — JSON to stdout
|
|
39
|
+
- `--plain` — TSV, no color
|
|
40
|
+
- `--no-cache` — skip cache read
|
|
41
|
+
- `--provider <name>` — force a specific provider (`espn`, `thesportsdb`)
|
|
42
|
+
- `--verbose` — include stack traces on error
|
|
43
|
+
|
|
44
|
+
## Providers
|
|
45
|
+
|
|
46
|
+
`wc26` chains keyless providers with automatic failover:
|
|
47
|
+
|
|
48
|
+
1. `espn` (site.api.espn.com — keyless)
|
|
49
|
+
2. `thesportsdb` (thesportsdb.com — free tier uses key `3`; set a paid key for higher limits)
|
|
50
|
+
|
|
51
|
+
Set a paid `thesportsdb` key via env var (`WC26_THESPORTSDB_KEY`) or `wc26 config set apiKey thesportsdb <key>`.
|
|
52
|
+
|
|
53
|
+
## Cache
|
|
54
|
+
|
|
55
|
+
JSON files under `~/.wc26/cache/`. TTLs: fixtures 6 h, standings 1 h, bracket 1 h, finished match 24 h, live 10 s. On provider failure the CLI serves stale cache and tags output `[STALE]` (or `"stale": true` in JSON).
|
|
56
|
+
|
|
57
|
+
## License
|
|
58
|
+
|
|
59
|
+
MIT.
|