asma-678-word-counter-cli-project
v1.0.0
Published
This is cli based word counter project
Readme
Word Counter CLI
____ _ ____ _ _
| _ \ | | / ___| ___ ___ ___| | |_ _
| |_) | __| | _____ | | / _ \ / _ \/ __| | | | | |
| __/ / _` |/ _ \ \ /\ / |___ | __/ (_) \__ \ | | |_| | |
| | | (_| | (_) \ V V \___ \___|\___/|___/_|_|\__, |
|_| \__,_|\___/ \_/\_/ |_|
|___/A simple command line app that counts the words in a sentence you type.
Features
- Takes any sentence as input
- Counts words correctly (handles extra spaces, tabs and newlines)
- Clean, readable output
How to Run
Compile the TypeScript file, then run it:
npx tsc index.ts
node index.jsRun from Any Command Prompt
Once published to npm, you can run this project from any command prompt without installing it:
npx asma-word-counter-projectExample
? Enter a sentence to count words: hello world, this is a test
Total words: 6
``
## Author
Made with 💛 by **Asma-Akbar**
---