NPM CLI (Covid-19 Special)

umargit

Umar Ahmed

Posted on April 1, 2020

NPM CLI (Covid-19 Special)

Npm cli built using javascript.You can also build your own now.


Fork or Clone the repository

git clone https://github.com/UmarGit/Covid-19-CLI.git
Enter fullscreen mode Exit fullscreen mode

Install the project globally

npm install -g .
Enter fullscreen mode Exit fullscreen mode

Now Run the Project from Command Prompt

covid-19
Enter fullscreen mode Exit fullscreen mode

Check Cases of a Country(like for Pakistan its country code is 'PK')

covid-19 -n PK
Enter fullscreen mode Exit fullscreen mode

Check Cases of other Countries

covid-19 -n PK #Pakistan
covid-19 -n US #United States
covid-19 -n IF #Italy
covid-19 -n AF #Afghanistan
covid-19 -n CN #China
Enter fullscreen mode Exit fullscreen mode

Conclusion

You can edit the index.js file and package.json as per your needs and make your own cli.How easy it was !.Please leave a star if you like this !

💖 💪 🙅 🚩
umargit
Umar Ahmed

Posted on April 1, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

NPM CLI (Covid-19 Special)
npm NPM CLI (Covid-19 Special)

April 1, 2020