DEV Community

Cover image for NPM CLI (Covid-19 Special)
Umar Ahmed
Umar Ahmed

Posted on

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 !

Top comments (0)