Thanks to the question How to change node.js's console font color?, I learned how to change the console output's font color natively.
The next step was the applying of the multiple formattings to single string. The solution like
console.log("\x1b[2m", "\x1b[31m", "\x1b[44m", "Sample Text", "\x1b[0m");
sometimes works, sometimes - no, but experimentally I explored that we can just concatenate multiple... what is it called? ANSII command sequence? The escape sequence?
console.log("\x1b[41m\x1b[33m%s\x1b[0m", "Formatted output");
Now, how can I join the multiple strings with different formatting? For example, the red background and yellow foreground first, than yellow background? Below experiment gave the output does not match wit desired
console.log("\x1b[41m\x1b[33m%s\x1b[0m", "Output", "\x1b[43m\x1b[33m%s\x1b[0m", "Another formatted output");
Please, no recommendations of third-party libraries here, because current topics is focusing on native solutions.