UNPKG

ts-logs

Version:

This package provide a skd for audit and manager logs in nodejs and express

98 lines 3.87 kB
export declare const BgColors: { black: number; red: number; green: number; yellow: number; blue: number; magenta: number; cyan: number; white: number; grey: number; gray: number; }; export declare const FtSizes: { fontDefault: number; font2: number; font3: number; font4: number; font5: number; font6: number; }; export declare const StyleTypes: { bold: number; italic: number; underline: number; reset: number; }; export type StyleType = keyof typeof StyleTypes; export type FtSize = keyof typeof FtSizes; export type BgColor = keyof typeof BgColors; /** Name || Type || Default reset || string || "\u001b[0m" bold || string || "\u001b[1m" italic || string || "\u001b[3m" underline || string || "\u001b[4m" fontDefault || string || "\u001b[10m" font2 || string || "\u001b[11m" font3 || string || "\u001b[12m" font4 || string || "\u001b[13m" font5 || string || "\u001b[14m" font6 || string || "\u001b[15m" imageNegative || string || "\u001b[7m" imagePositive || string || "\u001b[27m" black || string || "\u001b[30m" red || string || "\u001b[31m" green || string || "\u001b[32m" yellow || string || "\u001b[33m" blue || string || "\u001b[34m" magenta || string || "\u001b[35m" cyan || string || "\u001b[36m" white || string || "\u001b[37m" grey || string || "\u001b[90m" gray || string || "\u001b[90m" brightRed || string || "\u001b[91m" brightGreen || string || "\u001b[92m" brightYellow || string || "\u001b[93m" brightBlue || string || "\u001b[94m" brightMagenta || string || "\u001b[95m" brightCyan || string || "\u001b[96m" brightWhite || string || "\u001b[97m" "bg-black" || string || "\u001b[40m" "bg-red" || string || "\u001b[41m" "bg-green" || string || "\u001b[42m" "bg-yellow" || string || "\u001b[43m" "bg-blue" || string || "\u001b[44m" "bg-magenta" || string || "\u001b[45m" "bg-cyan" || string || "\u001b[46m" "bg-white" || string || "\u001b[47m" "bg-grey" || string || "\u001b[100m" "bg-gray" || string || "\u001b[100m" "bg-brightRed" || string || "\u001b[101m" "bg-brightGreen" || string || "\u001b[102m" "bg-brightYellow" || string || "\u001b[103m" "bg-brightBlue" || string || "\u001b[104m" "bg-brightMagenta" || string || "\u001b[105m" "bg-brightCyan" || string || "\u001b[106m" "bg-brightWhite" || string || "\u001b[107m" */ export declare const Color: { byNum: (message: string, color: number, bg: BgColor) => string; applyStyle: (message: string, type: StyleType, size?: FtSize) => string; black: (message: string, bgColor: BgColor) => string; red: (message: string, bgColor: BgColor) => string; green: (message: string, bgColor: BgColor) => string; yellow: (message: string, bgColor: BgColor) => string; blue: (message: string, bgColor: BgColor) => string; magenta: (message: string, bgColor: BgColor) => string; cyan: (message: string, bgColor: BgColor) => string; white: (message: string, bgColor: BgColor) => string; style: (size?: FtSize) => { bold: (message: string) => string; italic: (message: string) => string; underline: (message: string) => string; reset: (message: string) => string; }; }; export default Color; //# sourceMappingURL=color.util.d.ts.map