1.0.1 • Published 3 years ago
step00_helloworld v1.0.1
Using Inquirer and Chalk to CLI Apps
Using Inquirer and Chalk Package
The latest version of Inquirer(9+) and Chalk(5+) have started using Native ECMA Script Packages.
In most of our projects and assignment we will use these packages.
Give the following command:
npm i inquirer
npm i --save-dev @types/inquirer
npm install chalkAdd .gitignore file and Write your code in app.ts file.
Give the following commands:
tsc
node app.jsYou can develop CLI Games using Inquirer, Chalk, etc. All your class projects will be CLI based and should be deployed as an NPX command
Run the following command to experience a CLI game:
npx firequizNow review the source code for Firequiz game.