hk-words-counter
v1.0.3
Published
A command-line tool that analyzes text files to count word occurrences. Provides total word counts and allows searching for specific word frequencies.
Readme
📦 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
npm install -g hk-words-counter🚀 Usage
To count the total number of words along with the frequency of all words in a file:
hk-words-counter <filepath>Example:
hk-words-counter ./docs/file.txtTo count a specific word’s frequency:
hk-words-counter <filepath> <word>Example:
hk-words-counter ./docs/file.txt hello