varun-word-counter-cli
v1.2.0
Published
A CLI tool to count words in a text file
Maintainers
Readme
varun-word-counter-cli
A simple CLI tool that counts the number of words in a given text file or string input. Perfect for quick word count checks from your terminal!
📦 Installation
Using NPX (No global installation needed)
npx varun-word-counter-cli <file-path>Global Installation
npm install -g varun-word-counter-cli🛠️ Usage
Count words from a file:
wordcount <file-path>Show help menu:
wordcount --help🔧 Options
| Option | Description |
| ----------- | ------------------------------------ |
| <file> | Path to the file to count words from |
| --help | Show help menu |
| --version | Show CLI version |
📁 Example
Sample.txt:
Hello! This is a sample text file to check the word count CLI.Run:
wordcount sample.txtOutput:
Total words: 12📌 Notes
- This tool only works with
.txtor text-based files. - You can also use
npxto quickly run it without installing.
🧑💻 Author
Varun Mendre
GitHub: @VarunMendre
📃 License
This project is licensed under the MIT License.
