UNPKG

@cowwoc/requirements

Version:

A fluent API for enforcing design contracts with automatic message generation.

26 lines 619 B
import chalk from "chalk"; import { AbstractColorWriter } from "../../internal.mjs"; /** * A node terminal that supports 16 colors. */ class Node16Colors extends AbstractColorWriter { constructor() { super(); } decorateInsertedText(text) { return chalk.bgGreen(chalk.whiteBright(text)); } decorateDeletedText(text) { return chalk.bgRed(chalk.whiteBright(text)); } afterFlush() { } decorateEqualText(text) { return text; } decoratePadding(text) { return text; } } export { Node16Colors }; //# sourceMappingURL=Node16Colors.mjs.map