Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 532 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 532 Bytes

text-stats

Get some information about a text. Can read from a text file or read from wiki article (on en.wikipedia.org). Currently will do word count and also find the longest word.

text_stats.js

  Usage: node text_stats.js [options]

Options

  -f, --file file     The text file to read from
  -w, --wiki string   The wiki article to read from
  -h, --help

Make sure to run npm install first to resolve dependencies.

Run examples:

  • node text_stats.js -f my_text_file.txt
  • node text_stats.js -w The_Simpsons