Ansari1120 / CLI_Typscripit_NodeJs_JavaScript_Based-Dice-Roll-Guess-Game

The game is Developed in Command Line Interface With node js based Dependenciess for adding functionalities and Beautify CLI overall Look

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is the Source code of Node js and Typescript/javascript Based Dice ROll guessing game Runs on the Command line Interface , its package Also published at NPM Marketplace. to run calculator do :

USED PAKCAGES : Inquirer , Chalk , Chalk-Animation , Gradient-string , Nanospinner , Prompt-sync , figlet , random-int image image

  1. (npm i type-script-dice-guess-game)

  2. (npx ahdgame)

  3. initialized typescript enviroment through (npx tsc -init)

  4. intialized node js enviroment (npm init -yes)

  5. (npm i chalk)

  6. (npm i chalk-animation)

  7. (npm i inquirer)

  8. (npm i nanospinner)

  9. (npm install typescript --save-dev)

  10. (npm i -g typescript)

  11. (npx tsc --init)

  12. (npm i ts-node-dev)

  13. (npm install nodemon --save-dev)

  14. (npm install @types/node --save-dev)

15)Add .js file with this at top : #! /usr/bin/env node

16)setup Json file(example) :

"bin": { "multiply": "bin/index.js" },

17)Test package locally(for example :

npx multiply

  1. (npm i --save-dev @types/prompt-sync)

  2. (npm i --save-dev @types/figlet)

  3. (npm i --save-dev @types/gradient-string)

21)create or login your npm account

(npm login)

22)publish your package (npm publish)

About

The game is Developed in Command Line Interface With node js based Dependenciess for adding functionalities and Beautify CLI overall Look


Languages

Language:JavaScript 100.0%