eight-colors
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -1,17 +0,4 @@ | ||
/** | ||
* Eight Colors | ||
*/ | ||
type ColorHandler = (str: string) => string | ||
export const black: ColorHandler; | ||
export const red: ColorHandler; | ||
export const green: ColorHandler; | ||
export const yellow: ColorHandler; | ||
export const blue: ColorHandler; | ||
export const magenta: ColorHandler; | ||
export const cyan: ColorHandler; | ||
export const white: ColorHandler; | ||
type BG = { | ||
interface IEightColors { | ||
black: ColorHandler; | ||
@@ -27,57 +14,14 @@ red: ColorHandler; | ||
export const bg: BG; | ||
type BR = { | ||
black: ColorHandler; | ||
red: ColorHandler; | ||
green: ColorHandler; | ||
yellow: ColorHandler; | ||
blue: ColorHandler; | ||
magenta: ColorHandler; | ||
cyan: ColorHandler; | ||
white: ColorHandler; | ||
bg: BG | ||
interface BR extends IEightColors { | ||
bg: IEightColors | ||
} | ||
export const br: BR; | ||
export const reset: ColorHandler; | ||
export const bold: ColorHandler; | ||
export const faint: ColorHandler; | ||
export const italic: ColorHandler; | ||
export const underline: ColorHandler; | ||
export const inverse: ColorHandler; | ||
export const hidden: ColorHandler; | ||
export const strike: ColorHandler; | ||
// remove color | ||
export const remove: ColorHandler; | ||
// console log | ||
type LogHandler = (str: string) => void; | ||
export const log: LogHandler; | ||
type ColorLogHandler = (...args: any[]) => string; | ||
export const logBlack: ColorLogHandler; | ||
export const logRed: ColorLogHandler; | ||
export const logGreen: ColorLogHandler; | ||
export const logYellow: ColorLogHandler; | ||
export const logBlue: ColorLogHandler; | ||
export const logMagenta: ColorLogHandler; | ||
export const logCyan: ColorLogHandler; | ||
export const logWhite: ColorLogHandler; | ||
declare interface EightColors extends IEightColors { | ||
type EightColors = { | ||
black: ColorHandler; | ||
red: ColorHandler; | ||
green: ColorHandler; | ||
yellow: ColorHandler; | ||
blue: ColorHandler; | ||
magenta: ColorHandler; | ||
cyan: ColorHandler; | ||
white: ColorHandler; | ||
bg: IEightColors, | ||
bg: BG, | ||
br: BR, | ||
@@ -94,18 +38,21 @@ | ||
// remove color | ||
remove: ColorHandler; | ||
log: LogHandler, | ||
// console log | ||
log: LogHandler; | ||
logBlack: ColorLogHandler, | ||
logRed: ColorLogHandler, | ||
logGreen: ColorLogHandler, | ||
logYellow: ColorLogHandler, | ||
logBlue: ColorLogHandler, | ||
logMagenta: ColorLogHandler, | ||
logCyan: ColorLogHandler, | ||
logWhite: ColorLogHandler, | ||
logBlack: ColorLogHandler; | ||
logRed: ColorLogHandler; | ||
logGreen: ColorLogHandler; | ||
logYellow: ColorLogHandler; | ||
logBlue: ColorLogHandler; | ||
logMagenta: ColorLogHandler; | ||
logCyan: ColorLogHandler; | ||
logWhite: ColorLogHandler; | ||
} | ||
declare const EC: EightColors | ||
declare const EC: EightColors; | ||
export default EC; | ||
export = EC; |
{ | ||
"name": "eight-colors", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Eight colors for the console", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -141,2 +141,5 @@ # Eight Colors | ||
* 1.2.1 | ||
- fixed types for commonjs | ||
* 1.2.0 | ||
@@ -143,0 +146,0 @@ - remove useless logColor |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
162
9888
127