@faisalkhandev/guess-game v1.1.1
šÆ Guess Game CLI - A Fun Number Guessing Game šÆ
š Guess Game CLI is a simple and interactive number guessing game for the terminal, built with Node.js. Play directly in your terminal by guessing a number between 1 and 10! š¹ļø
⨠Features
ā
Fun and interactive CLI experience
ā
Supports both --guess and -g flags
ā
Built using Commander.js
ā
Lightweight and fast
ā
Cross-platform (Windows, macOS, Linux)
š Installation
Install the package globally using npm:
npm install -g @faisalkhandev/guess-game
Or use it directly with npx (no installation required):
npx @faisalkhandev/guess-game --guess 5
š® How to Play
Simply run the command:
guess --guess
or use the short version:
guess -g
Example
guess --guess 7 or guess -g 7
If you guess the correct number, you win! Otherwise, the correct answer will be revealed.
š¦ Usage in a Project
You can also use it in a Node.js project:
const guessGame = require("@faisalkhandev/guess-game"); guessGame();
š ļø Development
If you want to contribute or modify the game:
git clone https://github.com/faisalkhandev/guessGamePackage.git
cd guessGamePackage
npm install
node guess.js --guess 5
š License This project is licensed under the MIT License.
š Created by Faisal Khan Dev š