A CLI based word counter using typescript and published as an executable npm package, complete problem statement is available here.
This project is published as an npm package. To use follow these steps.
-
Install as an npm package
npm i wmd-ts-word-counter
-
Run the app after installation
wmd-ts-word-counter
-
Use the app as an npx package
npx wmd-ts-word-counter
-
Inputs :
- Enter any paragraph when prompted
-
Results :
- Number of Words
- Number of total Characters
- Number of Alphabets
- Number of Numeric Characters
- Number of Unique Words
- Number of Unique Alphabets
All the details to code this app is given here.