Abstracted styleText Utility for Enhanced Text Styling in Node.js
npm install console-style-textYou can install ConsoleStyle via npm:
``bash`
npm i console-style-text
to print the text, also you can add color, background or format
`javascript
//use with commonJS
const {consoleStyle} = require('console-style-text')
//or ES module
import { consoleStyle } from 'console-style-text'`
`javascript// normal print
consoleStyle('text sample').log()
// print with color
consoleStyle('text sample').color('red').log()
// print with background
consoleStyle('text sample').bg('bgRed').log()
// print with format
consoleStyle('text sample').format('bold').log()
`#### Available Colors:
.color(colorName)
black, red, green, yellow, blue, magenta, cyan, white, gray
redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright#### Available Background Colors:
.bg(bgColorName)
bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bgGray
bgRedBright, bgGreenBright, bgYellowBright, bgBlueBright, bgMagentaBright, bgCyanBright, bgWhiteBright#### Available Formats:
.format(formatName)`