UNPKG

@clickup/ent-framework

Version:

A PostgreSQL graph-database-alike library with microsharding and row-level security

10 lines (8 loc) 228 B
import chalk from "chalk"; export function highlightIf( message: string, color: typeof chalk.Color | typeof chalk.Modifiers, condition: () => boolean, ): string { return condition() ? chalk[color](message) : message; }