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

ansis

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ansis - npm Package Compare versions

Comparing version 3.5.0-beta.0 to 3.5.0-beta.1

2

index.d.ts

@@ -1,1 +0,1 @@

type AnsiStyles=(|'reset'|'inverse'|'hidden'|'visible'|'bold'|'dim'|'italic'|'underline'|'strikethrough'|'strike' );type BC =|'black'|'red'|'green'|'yellow'|'blue'|'magenta'|'cyan'|'white'|'gray'|'grey';type BBC=`${BC}Bright`;type AnsiColors =|BC|BBC|`bg${Capitalize<BC>}`|`bg${Capitalize<BBC>}`;type AnsiColorsExtend<T extends string>=AnsiColors|(T & Record<never,never>);type DP={[style in AnsiStyles|AnsiColors]:Ansis;};type SP={isSupported():boolean;(string:string):string;(string:TemplateStringsArray,...parameters:string[]):string;ansi256(code:number):Ansis;fg(code:number):Ansis;bgAnsi256(code:number):Ansis;bg(code:number):Ansis;rgb(red:number,green:number,blue:number):Ansis;bgRgb(red:number,green:number,blue:number):Ansis;hex(hex:string):Ansis;bgHex(hex:string):Ansis;strip(str:string):string;extend<U extends string>(colors:Record<U,string|{open:string;close:string}>):asserts this is InstanceType<typeof Ansis> & Record<U,Ansis>;open:string;close:string;};type Ansis=SP & DP;declare const ansis:Ansis;export{type AnsiColors,type AnsiColorsExtend,type AnsiStyles,ansis as default,};export declare const Ansis:new ()=>Ansis;export declare function ansi256(code:number):Ansis;export declare function fg(code:number):Ansis;export declare function bgAnsi256(code:number):Ansis;export declare function bg(code:number):Ansis;export declare function rgb(red:number,green:number,blue:number):Ansis;export declare function bgRgb(red:number,green:number,blue:number):Ansis;export declare function hex(code:string):Ansis;export declare function bgHex(code:string):Ansis;export declare const reset:Ansis;export declare const inverse:Ansis;export declare const hidden:Ansis;export declare const visible:Ansis;export declare const bold:Ansis;export declare const dim:Ansis;export declare const italic:Ansis;export declare const underline:Ansis;export declare const strikethrough:Ansis;export declare const strike:Ansis;export declare const black:Ansis;export declare const red:Ansis;export declare const green:Ansis;export declare const yellow:Ansis;export declare const blue:Ansis;export declare const magenta:Ansis;export declare const cyan:Ansis;export declare const white:Ansis;export declare const gray:Ansis;export declare const grey:Ansis;export declare const blackBright:Ansis;export declare const redBright:Ansis;export declare const greenBright:Ansis;export declare const yellowBright:Ansis;export declare const blueBright:Ansis;export declare const magentaBright:Ansis;export declare const cyanBright:Ansis;export declare const whiteBright:Ansis;export declare const bgBlack:Ansis;export declare const bgRed:Ansis;export declare const bgGreen:Ansis;export declare const bgYellow:Ansis;export declare const bgBlue:Ansis;export declare const bgMagenta:Ansis;export declare const bgCyan:Ansis;export declare const bgWhite:Ansis;export declare const bgBlackBright:Ansis;export declare const bgRedBright:Ansis;export declare const bgGreenBright:Ansis;export declare const bgYellowBright:Ansis;export declare const bgBlueBright:Ansis;export declare const bgMagentaBright:Ansis;export declare const bgCyanBright:Ansis;export declare const bgWhiteBright:Ansis;
type AnsiStyles ='reset'|'inverse'|'hidden'|'visible'|'bold'|'dim'|'italic'|'underline'|'strikethrough'|'strike' ;type BC='black'|'red'|'green'|'yellow'|'blue'|'magenta'|'cyan'|'white'|'gray'|'grey';type BBC=`${BC}Bright`;type AnsiColors =BC|BBC|`bg${Capitalize<BC>}`|`bg${Capitalize<BBC>}`;type AC=AnsiColors;type AnsiColorsExtend<T extends string>=AC|(T & Record<never,never>);type DP={[K in AnsiStyles|AC]:A;};type SP={isSupported():boolean;(string:string):string;(strings:TemplateStringsArray,...values:any[]):string;ansi256(code:number):A;fg(code:number):A;bgAnsi256(code:number):A;bg(code:number):A;rgb(r:number,g:number,b:number):A;bgRgb(r:number,g:number,b:number):A;hex(hex:string):A;bgHex(hex:string):A;strip(str:string):string;extend<U extends string>(colors:Record<U,string|{open:string;close:string}>):asserts this is InstanceType<typeof Ansis> & Record<U,A>;open:string;close:string;};type Ansis=SP & DP;type A=Ansis;declare const Ansis:new ()=>A,ansi256:(code:number)=>A,bgAnsi256:(code:number)=>A,fg:(code:number)=>A,bg:(code:number)=>A,rgb:(r:number,g:number,b:number)=>A,bgRgb:(r:number,g:number,b:number)=>A,hex:(code:string)=>A,bgHex:(code:string)=>A,ansis:A,reset:A,inverse:A,hidden:A,visible:A,bold:A,dim:A,italic:A,underline:A,strikethrough:A,strike:A,black:A,red:A,green:A,yellow:A,blue:A,magenta:A,cyan:A,white:A,gray:A,grey:A,blackBright:A,redBright:A,greenBright:A,yellowBright:A,blueBright:A,magentaBright:A,cyanBright:A,whiteBright:A,bgBlack:A,bgRed:A,bgGreen:A,bgYellow:A,bgBlue:A,bgMagenta:A,bgCyan:A,bgWhite:A,bgBlackBright:A,bgRedBright:A,bgGreenBright:A,bgYellowBright:A,bgBlueBright:A,bgMagentaBright:A,bgCyanBright:A,bgWhiteBright:A;export{type AnsiColors,type AnsiStyles,type AnsiColorsExtend,ansis as default,Ansis,ansi256,fg,bgAnsi256,bg,rgb,bgRgb,hex,bgHex,reset,inverse,hidden,visible,bold,dim,italic,underline,strikethrough,strike,black,red,green,yellow,blue,magenta,cyan,white,gray,grey,blackBright,redBright,greenBright,yellowBright,blueBright,magentaBright,cyanBright,whiteBright,bgBlack,bgRed,bgGreen,bgYellow,bgBlue,bgMagenta,bgCyan,bgWhite,bgBlackBright,bgRedBright,bgGreenBright,bgYellowBright,bgBlueBright,bgMagentaBright,bgCyanBright,bgWhiteBright,};
{
"name": "ansis",
"version": "3.5.0-beta.0",
"version": "3.5.0-beta.1",
"description": "ANSI colors and styles in terminal output",

@@ -5,0 +5,0 @@ "keywords": [

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