A simple CLI tool to count words in a file
Clone the repository and install it globally:
git clone https://github.com/code-pankaj/wcount.git
cd wcount
npm link
Now you can use wcount
from anywhere! 🎉
Run the command followed by the file path:
wcount myfile.txt
Example output:
Total words: 123
✅ Accurate word counting
✅ Handles multiple spaces & newlines
✅ Ignores punctuation
✅ Lightweight & fast
Feel free to fork, create issues, or submit PRs!
MIT License