0.1.0 • Published 3 years ago
nanocolors-template v0.1.0
Nano Colors Template
Tagged template literal for nanocolors
.
const { colorize } = require("nanocolors-template");
colorize`{red Is red color text}`;
const text = "Is yellow color red background";
colorize`{yellow.bgRed ${text} text}`;
colorize`{bgBlack.green.strikethrough is red color black background strikethrough text}`;
colorize`{red Is red color and {yellow yellow color} text}`;
Blocks are delimited by an opening curly brace {
, a style, some content, and a closing curly brace }
.