printstyled

1.3.4 • Public • Published

printstyled (an NPM package)

Build Status

CLI tool to intuitively colorize and stylize text in Bash and Javascript Terminals.

Screenshot of printstyled's Usage message. Screenshot of printstyled's Usage Message (in a Dracula-themed terminal)

Install

$ npm install --global printstyled

Usage

$ 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 3

API

printstyled TEXT [COLOR] [STYLE, STYLE2...]

TEXT : The text string to style. Type: String

Note: Required

COLOR : Name of color to apply. Type: string

Default: white or default forground color.

STYLE(S): Styles to apply. Type: string(s)

Default: none or normal

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

Package Sidebar

Install

npm i printstyled

Weekly Downloads

1

Version

1.3.4

License

MIT

Unpacked Size

9.61 kB

Total Files

9

Last publish

Collaborators

  • mattdanielbrown