Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eight-colors

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eight-colors - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

91

lib/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc