/** * The interface used for formatting strings to contain color metadata. * * Use the interface properties to construct a style, then use the * `(s: string): string` function to format the provided string with the given * style.
*/
export interface Colors { // Are colors enabled?
enabled: boolean;
// Returns the string formatted to contain the specified color or style.
(s: string): string;
/** * The interface used for formatting strings with color metadata. * * Currently Colors will use the 'ansi-colors' module if it can be loaded. * If it cannot be loaded, then the Colors implementation is a straight pass-through. * * Colors may also be a no-op if the current environment does not support colors.
*/
export let Colors: Colors;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.