1.0.1 • Published 1 year ago

step00_helloworld v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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 chalk

Add .gitignore file and Write your code in app.ts file.

Give the following commands:

    tsc

    node app.js

You can develop CLI Games using Inquirer, Chalk, etc. All your class projects will be CLI based and should be deployed as an NPX command

How to create a NPX tool

Run the following command to experience a CLI game:

    npx firequiz

Now review the source code for Firequiz game.