UNPKG

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
### ๐Ÿ“ฆ 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 ```