@nodesecure/js-x-ray
Version:
JavaScript AST XRay analysis
14 lines • 490 B
TypeScript
import type { ESTree } from "meriyah";
export declare const CONSTANTS: Readonly<{
SAFE_HEXA_VALUES: string[];
UNSAFE_HEXA_VALUES: string[];
}>;
/**
* @description detect if the given string is an Hexadecimal value
*/
export declare function isHex(anyValue: ESTree.Literal | string): boolean;
/**
* @description detect if the given string is a safe Hexadecimal value
*/
export declare function isSafe(anyValue: ESTree.Literal | string): boolean;
//# sourceMappingURL=hex.d.ts.map