Get Live Cricket Score Update on Your Terminal, CMD and Termux.
- Typescript
- Axios
- Yargs - https://yargs.js.org/
-
Yaml
- Read the API URL
- Clone or Download Repo
git clone https://github.com/sanwebinfo/cricket-cli.git
## Open Project Folder
cd cricket-cli
## install packages
pnpm install
## build CLI
pnpm build
- Create
cricket.yml
file on yourHOME
Directory to add Cricket API URL
BASE_URL: 'https://cricket.example.com/score
- Get Cricket API : https://github.com/sanwebinfo/cricket-score/tree/main/data
- Link and Test the CLI Locally
npm link or pnpm link --global
- unlink CLI
npm rm --global cricket-data or pnpm uninstall --global cricket-data
- Access CLI Globally
cricket score --help
cricket score <MatchID>
cricket score <MatchID> --details
- Access via
NPX
npx cricket-data score <MatchID> or npx cricket-data score --help
- install via
NPM
andPNPM
## install via npm
npm install -g cricket-data
## Remove Package
npm uninstall -g cricket-data
## install via pnpm
pnpm install -g cricket-data
## update package
pnpm update -g cricket-data
## Remove Package
pnpm uninstall -g cricket-data
- Clear NPX and PNPM Cache
npx clear-npx-cache
pnpm store prune
Your PR's are Welcome
- This is not an Offical API from Cricbuzz - it's an Unofficial API
- This is for Education Purpose only - use at your own risk on Production Site
All Credits Goes to https://www.cricbuzz.com/
MIT