UNPKG

nsole

Version:

A drop-in isomorphic console.* replacement that's pretty, small, fast, and flexible

117 lines 4.33 kB
import type { ConsoleCanStyleU, DefinitionsD, DefinitionCSS } from './types.ts'; /** ANSI color map; value converted to respective ANSI; i prefex = intense */ export declare const ANSI: { none: "rgba(0,0,0,0.0)"; black: "rgba(0,0,0,1.0)"; red: "rgba(128,0,0,1.0)"; green: "rgba(0,128,0,1.0)"; yellow: "rgba(128,128,0,1.0)"; blue: "rgba(0,0,128,1.0)"; magenta: "rgba(128,0,128,1.0)"; cyan: "rgba(0,128,128,1.0)"; white: "rgba(192,192,192,1.0)"; iblack: "rgba(128,128,128,1.0)"; ired: "rgba(255,0,0,1.0)"; igreen: "rgba(0,255,0,1.0)"; iyellow: "rgba(255,255,0,1.0)"; iblue: "rgba(0,0,255,1.0)"; imagenta: "rgba(255,0,255,1.0)"; icyan: "rgba(0,255,255,1.0)"; iwhite: "rgba(255,255,255,1.0)"; }; /** ANSI 'none' color */ export declare const ANSI_NONE: "rgba(0,0,0,0.0)"; /** global ptag suffix id PTAG_ */ export declare const GID: "PTAG_"; /** all delimiter variants */ export declare const DL: { readonly ptag: ["[", "]", "|"]; readonly stag: ["[", "][", "]"]; readonly ctag: ["", ":", ":"]; readonly btag: ["(", "){", "}"]; readonly ltag: ["|", "|", "|"]; readonly ftag: ["", "/", "/"]; readonly etag: ["", " ", " "]; }; /** all logLevels */ export declare const LVL: { debug: 5; log: 4; info: 4; check: 3; warn: 2; error: 1; }; /** browser/theme css simple/text style */ export declare const BROWSER_CSS_THEME: DefinitionCSS; /** browser/theme/fg css simple/text style */ export declare const BROWSER_CSS_THEME_FG: DefinitionCSS; /** browser/ansi css simple/text style */ export declare const BROWSER_CSS_ANSI: DefinitionCSS; /** browser/ansi/fg css simple/text style */ export declare const BROWSER_CSS_ANSI_FG: DefinitionCSS; /** browser/theme css ptag style */ export declare const BROWSER_CSS_THEME_PTAG: DefinitionCSS; /** browser/theme/fg css ptag style */ export declare const BROWSER_CSS_THEME_FG_PTAG: DefinitionCSS; /** browser/ansi css ptag style */ export declare const BROWSER_CSS_ANSI_PTAG: DefinitionCSS; /** browser/ansi/fg css ptag style */ export declare const BROWSER_CSS_ANSI_FG_PTAG: DefinitionCSS; /** browser/theme css stag style */ export declare const BROWSER_CSS_THEME_STAG: DefinitionCSS; /** browser/theme/fg css stag style */ export declare const BROWSER_CSS_THEME_FG_STAG: DefinitionCSS; /** browser/ansi css stag style */ export declare const BROWSER_CSS_ANSI_STAG: DefinitionCSS; /** browser/ansi/fg css stag style */ export declare const BROWSER_CSS_ANSI_FG_STAG: DefinitionCSS; /** * base theme '_def' for browser (ptag, ctag) * @type {Omit<DefinitionsD<ConsoleCanStyleU>, '_fg'>} */ export declare const BROWSER_THEME: Omit<DefinitionsD<ConsoleCanStyleU>, '_fg'>; /** * base theme/fg '_def' for browser (ptagg, ctagg) * @type {Omit<DefinitionsD<ConsoleCanStyleU>, '_fg'>} */ export declare const BROWSER_THEME_FG: Omit<DefinitionsD<ConsoleCanStyleU>, '_fg'>; /** * base ansi '_def' for browser (ptagi, ctagi) * @type {Omit<DefinitionsD<ConsoleCanStyleU>, '_fg'>} */ export declare const BROWSER_ANSI: Omit<DefinitionsD<ConsoleCanStyleU>, '_fg'>; /** * base ansi/fg '_def' for browser (ptaggi, ctaggi) * @type {Omit<DefinitionsD<ConsoleCanStyleU>, '_fg'>} */ export declare const BROWSER_ANSI_FG: Omit<DefinitionsD<ConsoleCanStyleU>, '_fg'>; /** node/theme css style */ export declare const NODE_CSS_THEME: DefinitionCSS; /** node/theme/fg css style */ export declare const NODE_CSS_THEME_FG: DefinitionCSS; /** node/ansi css style */ export declare const NODE_CSS_ANSI: DefinitionCSS; /** node/ansi/fg css style */ export declare const NODE_CSS_ANSI_FG: DefinitionCSS; /** * base theme '_def' for node (ptag, ctag) * @type {DefinitionsD<ConsoleCanStyleU>} */ export declare const NODE_THEME: DefinitionsD<ConsoleCanStyleU>; /** * base theme/fg '_def' for node (ptagg, ctagg) * @type {DefinitionsD<ConsoleCanStyleU>} */ export declare const NODE_THEME_FG: DefinitionsD<ConsoleCanStyleU>; /** * base ansi '_def' for node (ptagi, ctagi) * @type {DefinitionsD<ConsoleCanStyleU>} */ export declare const NODE_ANSI: DefinitionsD<ConsoleCanStyleU>; /** * base ansi/fg '_def' for node (ptaggi, ctaggi) * @type {DefinitionsD<ConsoleCanStyleU>} */ export declare const NODE_ANSI_FG: DefinitionsD<ConsoleCanStyleU>; //# sourceMappingURL=constants.d.ts.map