/cmd-style

A command line tool for styling text

Primary LanguageJavaScript

cmd-style

A super simplecommand line tool for styling text

Examples

Centered bold text with a red foreground and a blue background:

echo Hello World! | style bold | style fg red | style bg blue | style center

Output:
image

Padded text from FIGlet with a red background, padded again, with a round border, padded again, and centered.

figlet "Hello World!" | style pad 4 1 | style bg red | style pad 3 1 | style border round | style pad 1 12 | style center

Output: image

NOTE: If you pipe style center into something, it will center the text, but not in the center of the screen.