UNPKG

stringzy

Version:

A versatile string manipulation library providing a range of text utilities for JavaScript and Node.js applications.

8 lines (7 loc) 277 B
/** * Checks if the input string is a valid hex color (e.g., "#fff", "#ffffff", "fff", "ffffff"). * * @param color - The string to validate. * @returns True if the string is a valid hex color, false otherwise. */ export declare function isHexColor(text: string): boolean;