Skip to content

Tima-games/TextStats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go License Platform Last commit

[English version] | [Russian version]

CLI-utility Text Stats

Simple CLI tool written in Go to analyze text.

I made this project for learning Go, Git, GitHub and just for fun, so don't be too serious.

Features

  • Count lines
  • Count words
  • Count letters (excluding spaces)
  • Count spaces
  • Read from file
  • Flags (in β version)

Usage

./textstats-[your version/arch] [Flag(s)]

Type your text

Finish input with Enter & Control + D (Linux/MacOS)

or

./textstats-[your version/arch] text.txt

"text.txt" - any text file.

Correctly supported formats: any UTF-8 text file

For example: .txt .md .go .py .json ...

Flags (available in beta)

All supported flags:

-h, --help - Shows help message and exit

-v, --version - Shows version and exit

-l, --lines - Shows only lines count

-w, --words - Shows only words count

-s, --spaces - Shows only spaces count

-c, --letters - Shows only letters count

And you also can use it with files.

Examples

Hello world

In your string(s) 1 lines
In your string(s) 2 words
In your string(s) 1 spaces
In your string(s) 10 letters
text.txt

In your string(s) 6 lines
In your string(s) 29 words
In your string(s) 19 spaces
In your string(s) 78 letters
-l
Hello world

In your string(s) 1 lines
-v
TextStats v1.5.0 (11-04-26 release)
-c example.md

In your string(s) 6561 letters

Notes

  • Words are separated by whitespace
  • Unicode is supported

Installation

Download binary from Releases page.

or

Build from source

git clone https://github.com/Tima-games/TextStats.git
cd TextStats
go build -o textstats

Roadmap

  • Count lines
  • Count words
  • Count letters
  • Count spaces
  • README
  • Read from file
  • Flags
  • Windows support
  • GUI
  • Built-in text editor

...and much more

License

GPL-3.0 license

About

Simple CLI tool written in Go to analyze text.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages