hk-words-counter
Version:
A command-line tool that analyzes text files to count word occurrences. Provides total word counts and allows searching for specific word frequencies.
53 lines (35 loc) โข 1.04 kB
Markdown
### ๐ฆ hk-words-counter
A powerful yet simple command-line tool for text analysis that:
- Counts total words in a file
- Tracks frequency of each word
- Allows searching for specific word counts
- Supports multiple file formats
- Provides clean, readable output
### Features
- **Word Frequency Analysis**: Counts how often each word appears
- **Targeted Search**: Find counts for specific words
- **Fast Processing**: Handles large files efficiently
- **Simple Interface**: Easy-to-use command line syntax
---
#### Usage section for `hk-words-counter`
##### ๐ง Installation
```bash
npm install -g hk-words-counter
```
##### ๐ Usage
To count the total number of words along with the frequency of all words in a file:
```bash
hk-words-counter <filepath>
```
**Example:**
```bash
hk-words-counter ./docs/file.txt
```
To count a specific wordโs frequency:
```bash
hk-words-counter <filepath> <word>
```
**Example:**
```bash
hk-words-counter ./docs/file.txt hello
```