printstyled
v1.3.4
Published
CLI tool to intuitively colorize and stylize text in Bash and Javascript Terminals.
Maintainers
Readme
printstyled (an NPM package)
CLI tool to intuitively colorize and stylize text in Bash and Javascript Terminals.
Screenshot of printstyled's Usage Message (in a Dracula-themed terminal)
Install
$ npm install --global printstyledUsage
$ printstyled TEXT [COLOR] [STYLE(S)...]
Options
[COLOR] color name [Default: white]
[STYLE(S)]... style name(s) [Default: none / normal]
Availble Style Values: 'bold', 'italic', 'underline', 'rev'
Examples
$ printstyled "Testing" blue
Testing
$ printstyled "Testing 2" red bold
Testing 2
$ printstyled "Testing 3" green bold italic
Testing 3API
printstyled TEXT [COLOR] [STYLE, STYLE2...]
TEXT : The text string to style.
Type: String
Note: Required
COLOR : Name of color to apply.
Type: string
Default:
whiteor default forground color.
STYLE(S): Styles to apply.
Type: string(s)
Default:
noneornormal
CLI
$ printstyled TEXT [COLOR] [STYLE(S)...]NAME
printstyled
USAGE
$ printstyled TEXT [COLOR] [STYLE, STYLE2...]
HELP
$ printstyled --help
OPTIONS
COLOR : 'color name'
# (white | blue | red | green | yellow) Default: white
STYLE(S) : 'style name, ...'
# (bold | italic | underline | rev) Default: none / normal
EXAMPLES
$ printstyled "Testing" blue
# => Testing
$ printstyled "Testing 2" red bold
# => Testing 2
$ printstyled "Testing 3" green bold italic
# => Testing 3