0.0.4 • Published 4 years ago

text-word-frequency v0.0.4

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

useful util for memorizing the document's keywords.

you can get a sample well-known-word dictionary in this project github.

> npm i text-word-frequency -g
> word-frequency -i sample/kafka.txt -d sample/dic.txt
 or
> lynx --dump "https://kafka.apache.org/documentation" 
  | word-frequency -d sample/dic.txt

kafka	1187
broker	581
consumer	554
sasl	368
ssl	337
producer	319
metrics	299
brokers	286
streams	283
partition	256
protocol	214
connector	208
zookeeper	192
offset	184
clients	177
records	177
topics	163
security	153
partitions	153
replicas	152
null	141
replication	123
...
> word-frequency --help

Usage: main [options]

count word frequency in stdin or file

Options:
  -d, --dictionary <dic>       dictionary file to exclude from the result (line 
                               separated, single word)
  -i, --inputFile <inputFile>  input text file, 
  -h, --help                   output usage information
0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago