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

@types/ansi-styles

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/ansi-styles - npm Package Compare versions

Comparing version 2.0.30 to 3.2.0

ansi-styles/escape-code.d.ts

94

ansi-styles/index.d.ts

@@ -1,40 +0,74 @@

// Type definitions for ansi-styles 2.0.1
// Type definitions for ansi-styles 3.2.1
// Project: https://github.com/sindresorhus/ansi-styles
// Definitions by: bryn austin bellomy <https://github.com/brynbellomy>
// plylrnsdy <https://github.com/plylrnsdy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { EscapeCode } from './escape-code';
export interface EscapeCodePair {
open: string;
close: string;
}
export declare var reset: EscapeCodePair;
export const reset: EscapeCode.CodePair;
export const bold: EscapeCode.CodePair;
export const dim: EscapeCode.CodePair;
/**
* Not widely supported
*/
export const italic: EscapeCode.CodePair;
export const underline: EscapeCode.CodePair;
export const inverse: EscapeCode.CodePair;
export const hidden: EscapeCode.CodePair;
/**
* Not widely supported
*/
export const strikethrough: EscapeCode.CodePair;
export declare var bold: EscapeCodePair;
export declare var dim: EscapeCodePair;
export declare var italic: EscapeCodePair;
export declare var underline: EscapeCodePair;
export declare var inverse: EscapeCodePair;
export declare var hidden: EscapeCodePair;
export declare var strikethrough: EscapeCodePair;
export const black: EscapeCode.CodePair;
export const red: EscapeCode.CodePair;
export const green: EscapeCode.CodePair;
export const yellow: EscapeCode.CodePair;
export const blue: EscapeCode.CodePair;
export const magenta: EscapeCode.CodePair;
export const cyan: EscapeCode.CodePair;
export const white: EscapeCode.CodePair;
/**
* bright black
*/
export const gray: EscapeCode.CodePair;
export const grey: EscapeCode.CodePair;
export declare var black: EscapeCodePair;
export declare var red: EscapeCodePair;
export declare var green: EscapeCodePair;
export declare var yellow: EscapeCodePair;
export declare var blue: EscapeCodePair;
export declare var magenta: EscapeCodePair;
export declare var cyan: EscapeCodePair;
export declare var white: EscapeCodePair;
export declare var gray: EscapeCodePair;
export const redBright: EscapeCode.CodePair;
export const greenBright: EscapeCode.CodePair;
export const yellowBright: EscapeCode.CodePair;
export const blueBright: EscapeCode.CodePair;
export const magentaBright: EscapeCode.CodePair;
export const cyanBright: EscapeCode.CodePair;
export const whiteBright: EscapeCode.CodePair;
export declare var bgBlack: EscapeCodePair;
export declare var bgRed: EscapeCodePair;
export declare var bgGreen: EscapeCodePair;
export declare var bgYellow: EscapeCodePair;
export declare var bgBlue: EscapeCodePair;
export declare var bgMagenta: EscapeCodePair;
export declare var bgCyan: EscapeCodePair;
export declare var bgWhite: EscapeCodePair;
export const bgBlack: EscapeCode.CodePair;
export const bgRed: EscapeCode.CodePair;
export const bgGreen: EscapeCode.CodePair;
export const bgYellow: EscapeCode.CodePair;
export const bgBlue: EscapeCode.CodePair;
export const bgMagenta: EscapeCode.CodePair;
export const bgCyan: EscapeCode.CodePair;
export const bgWhite: EscapeCode.CodePair;
export const bgBlackBright: EscapeCode.CodePair;
export const bgRedBright: EscapeCode.CodePair;
export const bgGreenBright: EscapeCode.CodePair;
export const bgYellowBright: EscapeCode.CodePair;
export const bgBlueBright: EscapeCode.CodePair;
export const bgMagentaBright: EscapeCode.CodePair;
export const bgCyanBright: EscapeCode.CodePair;
export const bgWhiteBright: EscapeCode.CodePair;
/**
* Raw escape codes (i.e. without the CSI escape prefix \u001B[ and render mode postfix m) are available.
*
* This is a Map with the open codes as keys and close codes as values.
*/
export const codes: Map<number, number>
export const modifier: EscapeCode.Modifier
export const color: EscapeCode.Color & EscapeCode.ColorType & { close: string }
export const bgColor: EscapeCode.BackgroundColor & EscapeCode.ColorType & { close: string }
{
"name": "@types/ansi-styles",
"version": "2.0.30",
"description": "TypeScript definitions for ansi-styles 2.0.1",
"version": "3.2.0",
"description": "TypeScript definitions for ansi-styles",
"license": "MIT",
"author": "bryn austin bellomy <https://github.com/brynbellomy>",
"contributors": [
{
"name": "bryn austin bellomy",
"url": "https://github.com/brynbellomy",
"githubUsername": "brynbellomy"
},
{
"name": "plylrnsdy",
"url": "https://github.com/plylrnsdy",
"githubUsername": "plylrnsdy"
}
],
"main": "",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git.git"
},
"scripts": {},
"dependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "33f75c6de956b275764af00a0c85f4ffd75c1de1178300a980481d1bfb8fd8e5"
"dependencies": {
"@types/color-name": "*"
},
"typesPublisherContentHash": "a7777bf5b2b4da0f8e588e263ab3ac415f63a484b9c4e8728b1cca29387764b8",
"typeScriptVersion": "2.0"
}

@@ -5,15 +5,13 @@ # Installation

# Summary
This package contains type definitions for ansi-styles 2.0.1 (https://github.com/sindresorhus/ansi-styles).
This package contains type definitions for ansi-styles (https://github.com/sindresorhus/ansi-styles).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/ansi-styles
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped.git/tree/master/types/ansi-styles
Additional Details
* Last updated: Mon, 19 Sep 2016 16:15:23 GMT
* File structure: ProperModule
* Library Dependencies: none
* Module Dependencies: none
* Last updated: Tue, 08 May 2018 16:35:40 GMT
* Dependencies: color-name
* Global values: none
# Credits
These definitions were written by bryn austin bellomy <https://github.com/brynbellomy>.
These definitions were written by bryn austin bellomy <https://github.com/brynbellomy>, plylrnsdy <https://github.com/plylrnsdy>.
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