ubon
Version:
Security scanner for AI-generated apps (Cursor, Lovable, Windsurf, v0). Catches hardcoded secrets, prompt injection, hallucinated imports, Server Actions / Edge runtime mistakes, and the vibe-coded vulnerabilities traditional linters miss.
37 lines • 1.07 kB
TypeScript
/**
* Tiny chalk-compatible color shim built on picocolors.
*
* Supports the chainable subset Ubon actually uses:
* - basic colors: red, green, yellow, blue, cyan, gray, white, black
* - basic backgrounds: bgRed, bgYellow, bgBlue
* - modifiers: bold, dim, italic, underline
* - hex/bgHex truecolor (24-bit ANSI) for branded UI
*
* Honors NO_COLOR, FORCE_COLOR, and process.stdout.isTTY via picocolors' own
* detection. If colors are disabled the styler is a pass-through identity.
*/
type StyleFn = (input: string) => string;
interface Styler extends StyleFn {
red: Styler;
green: Styler;
yellow: Styler;
blue: Styler;
cyan: Styler;
gray: Styler;
white: Styler;
black: Styler;
bgRed: Styler;
bgYellow: Styler;
bgBlue: Styler;
bgGreen: Styler;
bold: Styler;
dim: Styler;
italic: Styler;
underline: Styler;
hex: (color: string) => Styler;
bgHex: (color: string) => Styler;
}
declare const chalk: Styler;
export type { Styler };
export default chalk;
//# sourceMappingURL=colors.d.ts.map