Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
iv4n89 committed Aug 8, 2023
1 parent d784694 commit 98e9f69
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default class Pollito {
}

/**
*
* Create and register a new Pollito instance
* @param {{
* instanceName: string,
* stringColor?: ('normal yellow'|'bright yellow'|'normal blue'|'bright blue'|'normal red'|'bright red'|'normal cyan'|'bright cyan'|'normal green'|'bright green'|'normal magenta'|'bright magenta'),
Expand Down Expand Up @@ -117,31 +117,31 @@ export default class Pollito {
}

/**
*
* Modify the text color for string watching
* @param {('normal yellow'|'bright yellow'|'normal blue'|'bright blue'|'normal red'|'bright red'|'normal cyan'|'bright cyan'|'normal green'|'bright green'|'normal magenta'|'bright magenta')} color
*/
setWatchColor (color) {
this.watch.color = color;
}

/**
*
* Modify the background for the string watching
* @param {('normal black'| 'bright black' | 'normal red' | 'bright red' | 'normal green' | 'bright green' | 'normal yellow' | 'bright yellow' | 'normal blue' | 'bright blue' | 'normal magenta' | 'bright magenta' | 'normal cyan' | 'bright cyan' | 'normal white' | 'bright white')} bg
*/
setWatchBg (bg) {
this.watch.bg = bg;
}

/**
*
* Modify the string to watch
* @param {string} string
*/
setWatchString (string) {
this.watch.string = string;
}

/**
*
* Modify all watching options
* @param {{
* string: string,
* watchColor?: ('normal yellow'|'bright yellow'|'normal blue'|'bright blue'|'normal red'|'bright red'|'normal cyan'|'bright cyan'|'normal green'|'bright green'|'normal magenta'|'bright magenta'),
Expand All @@ -155,7 +155,7 @@ export default class Pollito {
}

/**
*
* Method to print an array
* @private
* @param {any[]} array The value
* @param {string} color The text color
Expand Down Expand Up @@ -191,7 +191,7 @@ export default class Pollito {
}

/**
*
* Method to print an object
* @private
* @param {Object} object
* @param {number} level
Expand Down Expand Up @@ -248,7 +248,7 @@ export default class Pollito {
}

/**
*
* Replace the string slice with the format string watched
* @private
* @param {string|any[]|Object} value
* @param {('normal black'| 'bright black' | 'normal red' | 'bright red' | 'normal green' | 'bright green' | 'normal yellow' | 'bright yellow' | 'normal blue' | 'bright blue' | 'normal magenta' | 'bright magenta' | 'normal cyan' | 'bright cyan' | 'normal white' | 'bright white')} background
Expand Down Expand Up @@ -285,7 +285,7 @@ export default class Pollito {
}

/**
*
* Log something with the options provided
* @param {...string[]} str
*/
log (...str) {
Expand Down Expand Up @@ -325,7 +325,7 @@ export default class Pollito {
}

/**
*
* Log something with date
* @param {string|any[]|object} value
* @param {{
* dateFormat?: ('string'|'localeString'|'miliseconds'),
Expand Down Expand Up @@ -358,7 +358,7 @@ export default class Pollito {
}

/**
*
* Just show the object without formats
* @param {any} value
* @returns {string} The stringify string result
*/
Expand Down

0 comments on commit 98e9f69

Please sign in to comment.