Skip to content

loenard97/minicat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minicat

A small cat clone, with pretty printing, inspired by bat

Usage

Output contents of a file to stdout:

$ minicat .\poem.txt
─────┬─────────────────────────────────────────────────────
     │  File .\poem.txt
─────┼─────────────────────────────────────────────────────
  1  │  I'm nobody! Who are you?
  2  │  Are you nobody, too?
  3  │  Then there's a pair of us - don't tell!
  4  │  They'd banish us, you know.
  5  │
  6  │  How dreary to be somebody!
  7  │  How public, like a frog
  8  │  To tell your name the livelong dreary
  9  │  To an admiring bog!
─────┴─────────────────────────────────────────────────────

Or use stdin as input:

$ echo "Hello World!" | minicat
─────┬─────────────────────────────────────────────────────
     │  File <stdin>
─────┼─────────────────────────────────────────────────────
  1  │  "Hello World!"
─────┴─────────────────────────────────────────────────────

Pretty printing is automatically disabled when redirecting stdout.

About

Small cat clone with pretty printing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages