JSPM

javascript-console-styling

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q27793F
  • License MIT

A package made specifically for providing you with all the javascript console colors and styles you'll ever need as simple functions!

Package Exports

  • javascript-console-styling
  • javascript-console-styling/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (javascript-console-styling) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Javascript Console Styling (JCS)

A package made specifically for providing you with all the javascript console colors and styles you'll ever need as simple functions!

Features

This package comes with all available console styling escape codes in the form of functions, which allows for features that console-styling does not provide such as nesting colors and/or decorations. This package also provides a main.js file that can be used to easily test out all the functions and their output in different environments.

Colors

  • Black
  • Black Background
  • Red
  • Red Background
  • Green
  • Green Background
  • Yellow
  • Yellow Background
  • Blue
  • Blue Background
  • Magenta
  • Magenta Background
  • Cyan
  • Cyan Background
  • White
  • White Background
  • Gray
  • Gray Background
  • Bright Red
  • Bright Red Background
  • Bright Green
  • Bright Green Background
  • Bright Yellow
  • Bright Yellow Background
  • Bright Blue
  • Bright Blue Background
  • Bright Magenta
  • Bright Magenta Background
  • Bright Cyan
  • Bright Cyan Background
  • Bright White
  • Bright White Background

Decorations

  • Bright
  • Dim
  • Italic Not widely supported
  • Underline
  • SlowBlink
  • RapidBlink Not widely supported
  • Reverse Not widely supported
  • Hidden Not widely supported
  • Strikethrough Not supported by all terminals (specifically the "Terminal App" according to Wikipedia)

Usage

This section is still being structured