@abhishekd358/word-counter
v1.0.0
Published
A CLI tool to count words in a text file created by github.com/abhishekd358
Maintainers
Readme
🧮 Word Counter CLI
A simple command-line tool to count total and unique words in any text file — created by Abhishek D 💗
🚀 Installation
You can use it instantly with npx (no need to install):
npx @abhishekd358/word-counter <file-path>or install it globally:
npm install -g @abhishekd358/word-counter💡 Example Commands
Run below cmd in your terminal
npx word-counter ./story.txtOutput Example:
📄 Word Count Result for: ./story.txt
-----------------------------------
hello : 5
world : 3
chai : 7
javascript : 4
-----------------------------------
🧮 Total Words: 19
🔠 Unique Words: 4
✅ Word count completed successfully!🧱 Tech Stack
- Node.js (v18+)
- ES Modules (
import/export) - Built-in
fs/promises(no extra dependencies)
👨💻 Author
Abhishek D 💗 📦 npm: @abhishekd358/word-counter 💻 GitHub: abhishekd358
