Package Exports
- consolecute
- consolecute/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 (consolecute) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Console Cute
This is primarily a list of values that can be used to print prettier text to your console. It includes color constants like RED, GREEN and YELLOW and background color constants like BG_BLUE, BG_CYAN, and BG_WHITE. It also contains other text decoration constants for your console like ITALIC, BOLD and UNDERLINE. It has three functions, an RGB and BG_RGB function that creates strings for specific RGB values and a PRINT function that trims and allows you to apply styles to text you are printing to the console.
Usage
You can use the colors directly with a console.log function by appending the string values like this:
import {RED, BLUE, BG_WHITE, RESET } from 'cuteconsole';
console.log(`${RED}This will print RED text.${RESET}`);
console.log(`${BLUE}${BG_WHITE}Blue text on a white background.${RESET});