Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nodejs/src/DisplayHelp.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const DisplayHelp = () => {
const { string: headline } = Render('cfonts', {
align: 'left',
gradient: ['red', 'green'],
});
}) || { string: 'cfonts' };

console.log(
` ${headline}` +
Expand Down
12 changes: 6 additions & 6 deletions nodejs/src/Render.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ const { Log } = require('./Log.js');
* @param {number} size.width - The width of the terminal
* @param {number} size.height - The height of the terminal
*
* @typedef {(object|boolean)} ReturnObject
* @property {string} string - The pure string for output with all line breaks
* @property {array} array - Each line of output in an array
* @property {number} lines - The number of lines
* @property {object} options - All options used
* @typedef {object} ReturnObject
* @property {string} string - The pure string for output with all line breaks
* @property {Array<string>} array - Each line of output in an array
* @property {number} lines - The number of lines
* @property {object} options - All options used
*
* @return {ReturnObject} - CLI output of INPUT to be consoled out
* @return {ReturnObject|false} - CLI output of INPUT to be consoled out
*/
const Render = (input, SETTINGS = {}, debug = DEBUG.enabled, debuglevel = DEBUG.level, size = Size) => {
Debugging.report(`Running render`, 1);
Expand Down
Loading