RenderKid
RenderKid copied to clipboard
Configure default terminalWidth for non TTY environment
Here in the code, the terminal width is defaulted to 80 for non-TTY terminals:
https://github.com/AriaMinaei/RenderKid/blob/e8c9744ac499a09219413177f6d45a24c4d346b5/src/tools.coffee#L83
This is causing lines to be cut when using in a context where Node is run using terminal redirection (WebStorm run console, AWS CloudWatch logs, ...)
Would it be possible to introduce an environment variable or a way to change this default value? If yes, I can open a pull-request for that. Environment variable could be something like RENDERKID_DEFAULT_TERMINAL_WIDTH.