Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Console.log font size in NodeJS

Can the font size be controlled from inside a NodeJS app when logging with console.log()?

I'm only interested in changing it at runtime and not changing it in the terminal settings.

like image 201
Razvan Avatar asked Jun 17 '26 15:06

Razvan


1 Answers

The way console.log works is that the output is sent to stdout or stderr, which are the standard stream provided by the OS to the application (nodejs) where it writes its output data. You can only pass text and ANSI escape codes to control the formatting of the text.

There's no option to control the font-size of the terminal text from within your node.js app.

like image 171
laggingreflex Avatar answered Jun 19 '26 10:06

laggingreflex