@bevry/ansi
Advanced tools
Comparing version 3.0.0 to 3.1.0-next.1627415168.f047b06b2926f7e89edb3394a103ad57dbdb70b8
export declare enum Color { | ||
Black = 0, | ||
Red = 1, | ||
Green = 2, | ||
Yellow = 3, | ||
Blue = 4, | ||
Magenta = 5, | ||
Cyan = 6, | ||
White = 7, | ||
Black = 0, | ||
Red = 1, | ||
Green = 2, | ||
Yellow = 3, | ||
Blue = 4, | ||
Magenta = 5, | ||
Cyan = 6, | ||
White = 7 | ||
} | ||
/** A factory method to generate an ANSI style applier from the open and close codes */ | ||
export declare function style( | ||
open: number, | ||
close: number | ||
): (str: string) => string | ||
export declare function style(open: number, close: number): (str: string) => string; | ||
/** A factory method to generate an ANSI foreground color applier from the foreground color code */ | ||
export declare function foregroundColor( | ||
color: Color, | ||
bright?: boolean | ||
): (str: string) => string | ||
export declare function foregroundColor(color: Color, bright?: boolean): (str: string) => string; | ||
/** A factory method to generate an ANSI background color applier from the background color code */ | ||
export declare function backgroundColor( | ||
color: Color, | ||
bright?: boolean | ||
): (str: string) => string | ||
export declare function backgroundColor(color: Color, bright?: boolean): (str: string) => string; | ||
/** Make the text look normal */ | ||
export declare const reset: (str: string) => string | ||
export declare const reset: (str: string) => string; | ||
/** Make the text bold, or with increased intensity */ | ||
export declare const bold: (str: string) => string | ||
export declare const bold: (str: string) => string; | ||
/** Make the text faint, or with decreased intensity */ | ||
export declare const faint: (str: string) => string | ||
export declare const faint: (str: string) => string; | ||
/** Make the text bold, or with increased intensity */ | ||
export declare const bright: (str: string) => string | ||
export declare const bright: (str: string) => string; | ||
/** Make the text faint, or with decreased intensity */ | ||
export declare const dim: (str: string) => string | ||
export declare const dim: (str: string) => string; | ||
/** Make the text italicized */ | ||
export declare const italic: (str: string) => string | ||
export declare const italic: (str: string) => string; | ||
/** Make the text underlined */ | ||
export declare const underline: (str: string) => string | ||
export declare const underline: (str: string) => string; | ||
/** Make the text slow blink */ | ||
export declare const slowBlink: (str: string) => string | ||
export declare const slowBlink: (str: string) => string; | ||
/** Make the text slow blink */ | ||
export declare const blink: (str: string) => string | ||
export declare const blink: (str: string) => string; | ||
/** Make the text rapid blink */ | ||
export declare const rapidBlink: (str: string) => string | ||
export declare const rapidBlink: (str: string) => string; | ||
/** Invert the colors of the text */ | ||
export declare const inverse: (str: string) => string | ||
export declare const inverse: (str: string) => string; | ||
/** Make the text concealed */ | ||
export declare const conceal: (str: string) => string | ||
export declare const conceal: (str: string) => string; | ||
/** Make the text crossed-out */ | ||
export declare const crossout: (str: string) => string | ||
export declare const crossout: (str: string) => string; | ||
/** Make the text crossed-out */ | ||
export declare const strikethrough: (str: string) => string | ||
export declare const strikethrough: (str: string) => string; | ||
/** Make the text framed */ | ||
export declare const frame: (str: string) => string | ||
export declare const frame: (str: string) => string; | ||
/** Make the text encircled */ | ||
export declare const encircle: (str: string) => string | ||
export declare const encircle: (str: string) => string; | ||
/** Make the text overlined */ | ||
export declare const overline: (str: string) => string | ||
export declare const overline: (str: string) => string; | ||
/** Make the text black */ | ||
export declare const black: (str: string) => string | ||
export declare const black: (str: string) => string; | ||
/** Make the text red */ | ||
export declare const red: (str: string) => string | ||
export declare const red: (str: string) => string; | ||
/** Make the text green */ | ||
export declare const green: (str: string) => string | ||
export declare const green: (str: string) => string; | ||
/** Make the text yellow */ | ||
export declare const yellow: (str: string) => string | ||
export declare const yellow: (str: string) => string; | ||
/** Make the text blue */ | ||
export declare const blue: (str: string) => string | ||
export declare const blue: (str: string) => string; | ||
/** Make the text magenta */ | ||
export declare const magenta: (str: string) => string | ||
export declare const magenta: (str: string) => string; | ||
/** Make the text cyan */ | ||
export declare const cyan: (str: string) => string | ||
export declare const cyan: (str: string) => string; | ||
/** Make the text white */ | ||
export declare const white: (str: string) => string | ||
export declare const white: (str: string) => string; | ||
/** Make the text bright black */ | ||
export declare const brightBlack: (str: string) => string | ||
export declare const brightBlack: (str: string) => string; | ||
/** Make the text bright red */ | ||
export declare const brightRed: (str: string) => string | ||
export declare const brightRed: (str: string) => string; | ||
/** Make the text bright green */ | ||
export declare const brightGreen: (str: string) => string | ||
export declare const brightGreen: (str: string) => string; | ||
/** Make the text bright yellow */ | ||
export declare const brightYellow: (str: string) => string | ||
export declare const brightYellow: (str: string) => string; | ||
/** Make the text bright blue */ | ||
export declare const brightBlue: (str: string) => string | ||
export declare const brightBlue: (str: string) => string; | ||
/** Make the text bright magenta */ | ||
export declare const brightMagenta: (str: string) => string | ||
export declare const brightMagenta: (str: string) => string; | ||
/** Make the text bright cyan */ | ||
export declare const brightCyan: (str: string) => string | ||
export declare const brightCyan: (str: string) => string; | ||
/** Make the text bright white */ | ||
export declare const brightWhite: (str: string) => string | ||
export declare const brightWhite: (str: string) => string; | ||
/** Make the text's background black */ | ||
export declare const bgBlack: (str: string) => string | ||
export declare const bgBlack: (str: string) => string; | ||
/** Make the text's background red */ | ||
export declare const bgRed: (str: string) => string | ||
export declare const bgRed: (str: string) => string; | ||
/** Make the text's background green */ | ||
export declare const bgGreen: (str: string) => string | ||
export declare const bgGreen: (str: string) => string; | ||
/** Make the text's background yellow */ | ||
export declare const bgYellow: (str: string) => string | ||
export declare const bgYellow: (str: string) => string; | ||
/** Make the text's background blue */ | ||
export declare const bgBlue: (str: string) => string | ||
export declare const bgBlue: (str: string) => string; | ||
/** Make the text's background magenta */ | ||
export declare const bgMagenta: (str: string) => string | ||
export declare const bgMagenta: (str: string) => string; | ||
/** Make the text's background cyan */ | ||
export declare const bgCyan: (str: string) => string | ||
export declare const bgCyan: (str: string) => string; | ||
/** Make the text's background white */ | ||
export declare const bgWhite: (str: string) => string | ||
export declare const bgWhite: (str: string) => string; | ||
/** Make the text's background bright black */ | ||
export declare const bgBrightBlack: (str: string) => string | ||
export declare const bgBrightBlack: (str: string) => string; | ||
/** Make the text's background bright red */ | ||
export declare const bgBrightRed: (str: string) => string | ||
export declare const bgBrightRed: (str: string) => string; | ||
/** Make the text's background bright green */ | ||
export declare const bgBrightGreen: (str: string) => string | ||
export declare const bgBrightGreen: (str: string) => string; | ||
/** Make the text's background bright yellow */ | ||
export declare const bgBrightYellow: (str: string) => string | ||
export declare const bgBrightYellow: (str: string) => string; | ||
/** Make the text's background bright blue */ | ||
export declare const bgBrightBlue: (str: string) => string | ||
export declare const bgBrightBlue: (str: string) => string; | ||
/** Make the text's background bright magenta */ | ||
export declare const bgBrightMagenta: (str: string) => string | ||
export declare const bgBrightMagenta: (str: string) => string; | ||
/** Make the text's background bright cyan */ | ||
export declare const bgBrightCyan: (str: string) => string | ||
export declare const bgBrightCyan: (str: string) => string; | ||
/** Make the text's background bright white */ | ||
export declare const bgBrightWhite: (str: string) => string | ||
//# sourceMappingURL=all.d.ts.map | ||
export declare const bgBrightWhite: (str: string) => string; | ||
//# sourceMappingURL=all.d.ts.map |
@@ -1,7 +0,7 @@ | ||
import * as ansi from './all.js' | ||
export * from './all.js' | ||
import * as ansi from './all.js'; | ||
export * from './all.js'; | ||
/** A type for all the applier generator methods */ | ||
export declare type ANSIFactory = 'style' | 'color' | 'backgroundColor' | ||
export declare type ANSIFactory = 'style' | 'color' | 'backgroundColor'; | ||
/** A type for all the available styles, colours, and background colors */ | ||
export declare type ANSIApplier = Exclude<keyof typeof ansi, ANSIFactory> | ||
//# sourceMappingURL=index.d.ts.map | ||
export declare type ANSIApplier = Exclude<keyof typeof ansi, ANSIFactory>; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,26 +5,26 @@ // Styles | ||
// https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit | ||
export var Color | ||
;(function (Color) { | ||
Color[(Color['Black'] = 0)] = 'Black' | ||
Color[(Color['Red'] = 1)] = 'Red' | ||
Color[(Color['Green'] = 2)] = 'Green' | ||
Color[(Color['Yellow'] = 3)] = 'Yellow' | ||
Color[(Color['Blue'] = 4)] = 'Blue' | ||
Color[(Color['Magenta'] = 5)] = 'Magenta' | ||
Color[(Color['Cyan'] = 6)] = 'Cyan' | ||
Color[(Color['White'] = 7)] = 'White' | ||
})(Color || (Color = {})) | ||
export var Color; | ||
(function (Color) { | ||
Color[Color["Black"] = 0] = "Black"; | ||
Color[Color["Red"] = 1] = "Red"; | ||
Color[Color["Green"] = 2] = "Green"; | ||
Color[Color["Yellow"] = 3] = "Yellow"; | ||
Color[Color["Blue"] = 4] = "Blue"; | ||
Color[Color["Magenta"] = 5] = "Magenta"; | ||
Color[Color["Cyan"] = 6] = "Cyan"; | ||
Color[Color["White"] = 7] = "White"; | ||
})(Color || (Color = {})); | ||
/** A factory method to generate an ANSI style applier from the open and close codes */ | ||
export function style(open, close) { | ||
return (str) => '\u001b[' + open + 'm' + str + '\u001b[' + close + 'm' | ||
return (str) => '\u001b[' + open + 'm' + str + '\u001b[' + close + 'm'; | ||
} | ||
/** A factory method to generate an ANSI foreground color applier from the foreground color code */ | ||
export function foregroundColor(color, bright = false) { | ||
// 30-37, 38 | ||
return style((bright ? 90 : 30) + color, 39) | ||
// 30-37, 38 | ||
return style((bright ? 90 : 30) + color, 39); | ||
} | ||
/** A factory method to generate an ANSI background color applier from the background color code */ | ||
export function backgroundColor(color, bright = false) { | ||
// 40-47, 48 | ||
return style((bright ? 100 : 40) + color, 49) | ||
// 40-47, 48 | ||
return style((bright ? 100 : 40) + color, 49); | ||
} | ||
@@ -38,98 +38,98 @@ // /** A factory method to generate an ANSI underline color applier from the underline color code */ | ||
/** Make the text look normal */ | ||
export const reset = style(0, 22) | ||
export const reset = style(0, 22); | ||
/** Make the text bold, or with increased intensity */ | ||
export const bold = style(1, 22) | ||
export const bold = style(1, 22); | ||
/** Make the text faint, or with decreased intensity */ | ||
export const faint = style(2, 22) | ||
export const faint = style(2, 22); | ||
/** Make the text bold, or with increased intensity */ | ||
export const bright = bold | ||
export const bright = bold; | ||
/** Make the text faint, or with decreased intensity */ | ||
export const dim = faint | ||
export const dim = faint; | ||
/** Make the text italicized */ | ||
export const italic = style(3, 23) | ||
export const italic = style(3, 23); | ||
/** Make the text underlined */ | ||
export const underline = style(4, 24) | ||
export const underline = style(4, 24); | ||
/** Make the text slow blink */ | ||
export const slowBlink = style(5, 25) | ||
export const slowBlink = style(5, 25); | ||
/** Make the text slow blink */ | ||
export const blink = slowBlink | ||
export const blink = slowBlink; | ||
/** Make the text rapid blink */ | ||
export const rapidBlink = style(6, 25) | ||
export const rapidBlink = style(6, 25); | ||
/** Invert the colors of the text */ | ||
export const inverse = style(7, 27) | ||
export const inverse = style(7, 27); | ||
/** Make the text concealed */ | ||
export const conceal = style(8, 28) | ||
export const conceal = style(8, 28); | ||
/** Make the text crossed-out */ | ||
export const crossout = style(9, 29) | ||
export const crossout = style(9, 29); | ||
/** Make the text crossed-out */ | ||
export const strikethrough = crossout | ||
export const strikethrough = crossout; | ||
/** Make the text framed */ | ||
export const frame = style(51, 54) | ||
export const frame = style(51, 54); | ||
/** Make the text encircled */ | ||
export const encircle = style(52, 54) | ||
export const encircle = style(52, 54); | ||
/** Make the text overlined */ | ||
export const overline = style(53, 55) | ||
export const overline = style(53, 55); | ||
/** Make the text black */ | ||
export const black = foregroundColor(Color.Black) | ||
export const black = foregroundColor(Color.Black); | ||
/** Make the text red */ | ||
export const red = foregroundColor(Color.Red) | ||
export const red = foregroundColor(Color.Red); | ||
/** Make the text green */ | ||
export const green = foregroundColor(Color.Green) | ||
export const green = foregroundColor(Color.Green); | ||
/** Make the text yellow */ | ||
export const yellow = foregroundColor(Color.Yellow) | ||
export const yellow = foregroundColor(Color.Yellow); | ||
/** Make the text blue */ | ||
export const blue = foregroundColor(Color.Blue) | ||
export const blue = foregroundColor(Color.Blue); | ||
/** Make the text magenta */ | ||
export const magenta = foregroundColor(Color.Magenta) | ||
export const magenta = foregroundColor(Color.Magenta); | ||
/** Make the text cyan */ | ||
export const cyan = foregroundColor(Color.Cyan) | ||
export const cyan = foregroundColor(Color.Cyan); | ||
/** Make the text white */ | ||
export const white = foregroundColor(Color.White) | ||
export const white = foregroundColor(Color.White); | ||
/** Make the text bright black */ | ||
export const brightBlack = foregroundColor(Color.Black, true) | ||
export const brightBlack = foregroundColor(Color.Black, true); | ||
/** Make the text bright red */ | ||
export const brightRed = foregroundColor(Color.Red, true) | ||
export const brightRed = foregroundColor(Color.Red, true); | ||
/** Make the text bright green */ | ||
export const brightGreen = foregroundColor(Color.Green, true) | ||
export const brightGreen = foregroundColor(Color.Green, true); | ||
/** Make the text bright yellow */ | ||
export const brightYellow = foregroundColor(Color.Yellow, true) | ||
export const brightYellow = foregroundColor(Color.Yellow, true); | ||
/** Make the text bright blue */ | ||
export const brightBlue = foregroundColor(Color.Blue, true) | ||
export const brightBlue = foregroundColor(Color.Blue, true); | ||
/** Make the text bright magenta */ | ||
export const brightMagenta = foregroundColor(Color.Magenta, true) | ||
export const brightMagenta = foregroundColor(Color.Magenta, true); | ||
/** Make the text bright cyan */ | ||
export const brightCyan = foregroundColor(Color.Cyan, true) | ||
export const brightCyan = foregroundColor(Color.Cyan, true); | ||
/** Make the text bright white */ | ||
export const brightWhite = foregroundColor(Color.White, true) | ||
export const brightWhite = foregroundColor(Color.White, true); | ||
/** Make the text's background black */ | ||
export const bgBlack = backgroundColor(Color.Black) | ||
export const bgBlack = backgroundColor(Color.Black); | ||
/** Make the text's background red */ | ||
export const bgRed = backgroundColor(Color.Red) | ||
export const bgRed = backgroundColor(Color.Red); | ||
/** Make the text's background green */ | ||
export const bgGreen = backgroundColor(Color.Green) | ||
export const bgGreen = backgroundColor(Color.Green); | ||
/** Make the text's background yellow */ | ||
export const bgYellow = backgroundColor(Color.Yellow) | ||
export const bgYellow = backgroundColor(Color.Yellow); | ||
/** Make the text's background blue */ | ||
export const bgBlue = backgroundColor(Color.Blue) | ||
export const bgBlue = backgroundColor(Color.Blue); | ||
/** Make the text's background magenta */ | ||
export const bgMagenta = backgroundColor(Color.Magenta) | ||
export const bgMagenta = backgroundColor(Color.Magenta); | ||
/** Make the text's background cyan */ | ||
export const bgCyan = backgroundColor(Color.Cyan) | ||
export const bgCyan = backgroundColor(Color.Cyan); | ||
/** Make the text's background white */ | ||
export const bgWhite = backgroundColor(Color.White) | ||
export const bgWhite = backgroundColor(Color.White); | ||
/** Make the text's background bright black */ | ||
export const bgBrightBlack = backgroundColor(Color.Black, true) | ||
export const bgBrightBlack = backgroundColor(Color.Black, true); | ||
/** Make the text's background bright red */ | ||
export const bgBrightRed = backgroundColor(Color.Red, true) | ||
export const bgBrightRed = backgroundColor(Color.Red, true); | ||
/** Make the text's background bright green */ | ||
export const bgBrightGreen = backgroundColor(Color.Green, true) | ||
export const bgBrightGreen = backgroundColor(Color.Green, true); | ||
/** Make the text's background bright yellow */ | ||
export const bgBrightYellow = backgroundColor(Color.Yellow, true) | ||
export const bgBrightYellow = backgroundColor(Color.Yellow, true); | ||
/** Make the text's background bright blue */ | ||
export const bgBrightBlue = backgroundColor(Color.Blue, true) | ||
export const bgBrightBlue = backgroundColor(Color.Blue, true); | ||
/** Make the text's background bright magenta */ | ||
export const bgBrightMagenta = backgroundColor(Color.Magenta, true) | ||
export const bgBrightMagenta = backgroundColor(Color.Magenta, true); | ||
/** Make the text's background bright cyan */ | ||
export const bgBrightCyan = backgroundColor(Color.Cyan, true) | ||
export const bgBrightCyan = backgroundColor(Color.Cyan, true); | ||
/** Make the text's background bright white */ | ||
export const bgBrightWhite = backgroundColor(Color.White, true) | ||
export const bgBrightWhite = backgroundColor(Color.White, true); |
@@ -1,1 +0,1 @@ | ||
export * from './all.js' | ||
export * from './all.js'; |
@@ -1,44 +0,39 @@ | ||
'use strict' | ||
"use strict"; | ||
// Styles | ||
// https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters | ||
Object.defineProperty(exports, '__esModule', { value: true }) | ||
exports.bgBrightWhite = exports.bgBrightCyan = exports.bgBrightMagenta = exports.bgBrightBlue = exports.bgBrightYellow = exports.bgBrightGreen = exports.bgBrightRed = exports.bgBrightBlack = exports.bgWhite = exports.bgCyan = exports.bgMagenta = exports.bgBlue = exports.bgYellow = exports.bgGreen = exports.bgRed = exports.bgBlack = exports.brightWhite = exports.brightCyan = exports.brightMagenta = exports.brightBlue = exports.brightYellow = exports.brightGreen = exports.brightRed = exports.brightBlack = exports.white = exports.cyan = exports.magenta = exports.blue = exports.yellow = exports.green = exports.red = exports.black = exports.overline = exports.encircle = exports.frame = exports.strikethrough = exports.crossout = exports.conceal = exports.inverse = exports.rapidBlink = exports.blink = exports.slowBlink = exports.underline = exports.italic = exports.dim = exports.bright = exports.faint = exports.bold = exports.reset = exports.backgroundColor = exports.foregroundColor = exports.style = exports.Color = void 0 | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.bgBrightBlue = exports.bgBrightYellow = exports.bgBrightGreen = exports.bgBrightRed = exports.bgBrightBlack = exports.bgWhite = exports.bgCyan = exports.bgMagenta = exports.bgBlue = exports.bgYellow = exports.bgGreen = exports.bgRed = exports.bgBlack = exports.brightWhite = exports.brightCyan = exports.brightMagenta = exports.brightBlue = exports.brightYellow = exports.brightGreen = exports.brightRed = exports.brightBlack = exports.white = exports.cyan = exports.magenta = exports.blue = exports.yellow = exports.green = exports.red = exports.black = exports.overline = exports.encircle = exports.frame = exports.strikethrough = exports.crossout = exports.conceal = exports.inverse = exports.rapidBlink = exports.blink = exports.slowBlink = exports.underline = exports.italic = exports.dim = exports.bright = exports.faint = exports.bold = exports.reset = exports.backgroundColor = exports.foregroundColor = exports.style = exports.Color = void 0; | ||
exports.bgBrightWhite = exports.bgBrightCyan = exports.bgBrightMagenta = void 0; | ||
// Colors | ||
// https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit | ||
var Color | ||
;(function (Color) { | ||
Color[(Color['Black'] = 0)] = 'Black' | ||
Color[(Color['Red'] = 1)] = 'Red' | ||
Color[(Color['Green'] = 2)] = 'Green' | ||
Color[(Color['Yellow'] = 3)] = 'Yellow' | ||
Color[(Color['Blue'] = 4)] = 'Blue' | ||
Color[(Color['Magenta'] = 5)] = 'Magenta' | ||
Color[(Color['Cyan'] = 6)] = 'Cyan' | ||
Color[(Color['White'] = 7)] = 'White' | ||
})((Color = exports.Color || (exports.Color = {}))) | ||
var Color; | ||
(function (Color) { | ||
Color[Color["Black"] = 0] = "Black"; | ||
Color[Color["Red"] = 1] = "Red"; | ||
Color[Color["Green"] = 2] = "Green"; | ||
Color[Color["Yellow"] = 3] = "Yellow"; | ||
Color[Color["Blue"] = 4] = "Blue"; | ||
Color[Color["Magenta"] = 5] = "Magenta"; | ||
Color[Color["Cyan"] = 6] = "Cyan"; | ||
Color[Color["White"] = 7] = "White"; | ||
})(Color = exports.Color || (exports.Color = {})); | ||
/** A factory method to generate an ANSI style applier from the open and close codes */ | ||
function style(open, close) { | ||
return function (str) { | ||
return '\u001b[' + open + 'm' + str + '\u001b[' + close + 'm' | ||
} | ||
return function (str) { return '\u001b[' + open + 'm' + str + '\u001b[' + close + 'm'; }; | ||
} | ||
exports.style = style | ||
exports.style = style; | ||
/** A factory method to generate an ANSI foreground color applier from the foreground color code */ | ||
function foregroundColor(color, bright) { | ||
if (bright === void 0) { | ||
bright = false | ||
} | ||
// 30-37, 38 | ||
return style((bright ? 90 : 30) + color, 39) | ||
if (bright === void 0) { bright = false; } | ||
// 30-37, 38 | ||
return style((bright ? 90 : 30) + color, 39); | ||
} | ||
exports.foregroundColor = foregroundColor | ||
exports.foregroundColor = foregroundColor; | ||
/** A factory method to generate an ANSI background color applier from the background color code */ | ||
function backgroundColor(color, bright) { | ||
if (bright === void 0) { | ||
bright = false | ||
} | ||
// 40-47, 48 | ||
return style((bright ? 100 : 40) + color, 49) | ||
if (bright === void 0) { bright = false; } | ||
// 40-47, 48 | ||
return style((bright ? 100 : 40) + color, 49); | ||
} | ||
exports.backgroundColor = backgroundColor | ||
exports.backgroundColor = backgroundColor; | ||
// /** A factory method to generate an ANSI underline color applier from the underline color code */ | ||
@@ -51,98 +46,98 @@ // export function underlineColor(open: number) { | ||
/** Make the text look normal */ | ||
exports.reset = style(0, 22) | ||
exports.reset = style(0, 22); | ||
/** Make the text bold, or with increased intensity */ | ||
exports.bold = style(1, 22) | ||
exports.bold = style(1, 22); | ||
/** Make the text faint, or with decreased intensity */ | ||
exports.faint = style(2, 22) | ||
exports.faint = style(2, 22); | ||
/** Make the text bold, or with increased intensity */ | ||
exports.bright = exports.bold | ||
exports.bright = exports.bold; | ||
/** Make the text faint, or with decreased intensity */ | ||
exports.dim = exports.faint | ||
exports.dim = exports.faint; | ||
/** Make the text italicized */ | ||
exports.italic = style(3, 23) | ||
exports.italic = style(3, 23); | ||
/** Make the text underlined */ | ||
exports.underline = style(4, 24) | ||
exports.underline = style(4, 24); | ||
/** Make the text slow blink */ | ||
exports.slowBlink = style(5, 25) | ||
exports.slowBlink = style(5, 25); | ||
/** Make the text slow blink */ | ||
exports.blink = exports.slowBlink | ||
exports.blink = exports.slowBlink; | ||
/** Make the text rapid blink */ | ||
exports.rapidBlink = style(6, 25) | ||
exports.rapidBlink = style(6, 25); | ||
/** Invert the colors of the text */ | ||
exports.inverse = style(7, 27) | ||
exports.inverse = style(7, 27); | ||
/** Make the text concealed */ | ||
exports.conceal = style(8, 28) | ||
exports.conceal = style(8, 28); | ||
/** Make the text crossed-out */ | ||
exports.crossout = style(9, 29) | ||
exports.crossout = style(9, 29); | ||
/** Make the text crossed-out */ | ||
exports.strikethrough = exports.crossout | ||
exports.strikethrough = exports.crossout; | ||
/** Make the text framed */ | ||
exports.frame = style(51, 54) | ||
exports.frame = style(51, 54); | ||
/** Make the text encircled */ | ||
exports.encircle = style(52, 54) | ||
exports.encircle = style(52, 54); | ||
/** Make the text overlined */ | ||
exports.overline = style(53, 55) | ||
exports.overline = style(53, 55); | ||
/** Make the text black */ | ||
exports.black = foregroundColor(Color.Black) | ||
exports.black = foregroundColor(Color.Black); | ||
/** Make the text red */ | ||
exports.red = foregroundColor(Color.Red) | ||
exports.red = foregroundColor(Color.Red); | ||
/** Make the text green */ | ||
exports.green = foregroundColor(Color.Green) | ||
exports.green = foregroundColor(Color.Green); | ||
/** Make the text yellow */ | ||
exports.yellow = foregroundColor(Color.Yellow) | ||
exports.yellow = foregroundColor(Color.Yellow); | ||
/** Make the text blue */ | ||
exports.blue = foregroundColor(Color.Blue) | ||
exports.blue = foregroundColor(Color.Blue); | ||
/** Make the text magenta */ | ||
exports.magenta = foregroundColor(Color.Magenta) | ||
exports.magenta = foregroundColor(Color.Magenta); | ||
/** Make the text cyan */ | ||
exports.cyan = foregroundColor(Color.Cyan) | ||
exports.cyan = foregroundColor(Color.Cyan); | ||
/** Make the text white */ | ||
exports.white = foregroundColor(Color.White) | ||
exports.white = foregroundColor(Color.White); | ||
/** Make the text bright black */ | ||
exports.brightBlack = foregroundColor(Color.Black, true) | ||
exports.brightBlack = foregroundColor(Color.Black, true); | ||
/** Make the text bright red */ | ||
exports.brightRed = foregroundColor(Color.Red, true) | ||
exports.brightRed = foregroundColor(Color.Red, true); | ||
/** Make the text bright green */ | ||
exports.brightGreen = foregroundColor(Color.Green, true) | ||
exports.brightGreen = foregroundColor(Color.Green, true); | ||
/** Make the text bright yellow */ | ||
exports.brightYellow = foregroundColor(Color.Yellow, true) | ||
exports.brightYellow = foregroundColor(Color.Yellow, true); | ||
/** Make the text bright blue */ | ||
exports.brightBlue = foregroundColor(Color.Blue, true) | ||
exports.brightBlue = foregroundColor(Color.Blue, true); | ||
/** Make the text bright magenta */ | ||
exports.brightMagenta = foregroundColor(Color.Magenta, true) | ||
exports.brightMagenta = foregroundColor(Color.Magenta, true); | ||
/** Make the text bright cyan */ | ||
exports.brightCyan = foregroundColor(Color.Cyan, true) | ||
exports.brightCyan = foregroundColor(Color.Cyan, true); | ||
/** Make the text bright white */ | ||
exports.brightWhite = foregroundColor(Color.White, true) | ||
exports.brightWhite = foregroundColor(Color.White, true); | ||
/** Make the text's background black */ | ||
exports.bgBlack = backgroundColor(Color.Black) | ||
exports.bgBlack = backgroundColor(Color.Black); | ||
/** Make the text's background red */ | ||
exports.bgRed = backgroundColor(Color.Red) | ||
exports.bgRed = backgroundColor(Color.Red); | ||
/** Make the text's background green */ | ||
exports.bgGreen = backgroundColor(Color.Green) | ||
exports.bgGreen = backgroundColor(Color.Green); | ||
/** Make the text's background yellow */ | ||
exports.bgYellow = backgroundColor(Color.Yellow) | ||
exports.bgYellow = backgroundColor(Color.Yellow); | ||
/** Make the text's background blue */ | ||
exports.bgBlue = backgroundColor(Color.Blue) | ||
exports.bgBlue = backgroundColor(Color.Blue); | ||
/** Make the text's background magenta */ | ||
exports.bgMagenta = backgroundColor(Color.Magenta) | ||
exports.bgMagenta = backgroundColor(Color.Magenta); | ||
/** Make the text's background cyan */ | ||
exports.bgCyan = backgroundColor(Color.Cyan) | ||
exports.bgCyan = backgroundColor(Color.Cyan); | ||
/** Make the text's background white */ | ||
exports.bgWhite = backgroundColor(Color.White) | ||
exports.bgWhite = backgroundColor(Color.White); | ||
/** Make the text's background bright black */ | ||
exports.bgBrightBlack = backgroundColor(Color.Black, true) | ||
exports.bgBrightBlack = backgroundColor(Color.Black, true); | ||
/** Make the text's background bright red */ | ||
exports.bgBrightRed = backgroundColor(Color.Red, true) | ||
exports.bgBrightRed = backgroundColor(Color.Red, true); | ||
/** Make the text's background bright green */ | ||
exports.bgBrightGreen = backgroundColor(Color.Green, true) | ||
exports.bgBrightGreen = backgroundColor(Color.Green, true); | ||
/** Make the text's background bright yellow */ | ||
exports.bgBrightYellow = backgroundColor(Color.Yellow, true) | ||
exports.bgBrightYellow = backgroundColor(Color.Yellow, true); | ||
/** Make the text's background bright blue */ | ||
exports.bgBrightBlue = backgroundColor(Color.Blue, true) | ||
exports.bgBrightBlue = backgroundColor(Color.Blue, true); | ||
/** Make the text's background bright magenta */ | ||
exports.bgBrightMagenta = backgroundColor(Color.Magenta, true) | ||
exports.bgBrightMagenta = backgroundColor(Color.Magenta, true); | ||
/** Make the text's background bright cyan */ | ||
exports.bgBrightCyan = backgroundColor(Color.Cyan, true) | ||
exports.bgBrightCyan = backgroundColor(Color.Cyan, true); | ||
/** Make the text's background bright white */ | ||
exports.bgBrightWhite = backgroundColor(Color.White, true) | ||
exports.bgBrightWhite = backgroundColor(Color.White, true); |
@@ -1,26 +0,13 @@ | ||
'use strict' | ||
var __createBinding = | ||
(this && this.__createBinding) || | ||
(Object.create | ||
? function (o, m, k, k2) { | ||
if (k2 === undefined) k2 = k | ||
Object.defineProperty(o, k2, { | ||
enumerable: true, | ||
get: function () { | ||
return m[k] | ||
}, | ||
}) | ||
} | ||
: function (o, m, k, k2) { | ||
if (k2 === undefined) k2 = k | ||
o[k2] = m[k] | ||
}) | ||
var __exportStar = | ||
(this && this.__exportStar) || | ||
function (m, exports) { | ||
for (var p in m) | ||
if (p !== 'default' && !Object.prototype.hasOwnProperty.call(exports, p)) | ||
__createBinding(exports, m, p) | ||
} | ||
Object.defineProperty(exports, '__esModule', { value: true }) | ||
__exportStar(require('./all.js'), exports) | ||
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./all.js"), exports); |
@@ -1,3 +0,1 @@ | ||
{ | ||
"type": "commonjs" | ||
} | ||
{"type": "commonjs"} |
# History | ||
## v3.1.0 2021 July 28 | ||
- Updated dependencies, [base files](https://github.com/bevry/base), and [editions](https://editions.bevry.me) using [boundation](https://github.com/bevry/boundation) | ||
## v3.0.0 2020 November 3 | ||
@@ -4,0 +8,0 @@ |
@@ -19,3 +19,3 @@ <!-- LICENSEFILE/ --> | ||
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. | ||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
@@ -22,0 +22,0 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
{ | ||
"name": "@bevry/ansi", | ||
"version": "3.0.0", | ||
"version": "3.1.0-next.1627415168.f047b06b2926f7e89edb3394a103ad57dbdb70b8", | ||
"description": "ANSI colors and styles for Deno, Node.js, JavaScript, and TypeScript", | ||
@@ -25,11 +25,7 @@ "homepage": "https://github.com/bevry/ansi", | ||
"cyan", | ||
"deno", | ||
"deno-edition", | ||
"deno-entry", | ||
"denoland", | ||
"dim", | ||
"encircle", | ||
"encircled", | ||
"es2019", | ||
"es5", | ||
"esnext", | ||
"faint", | ||
@@ -70,3 +66,3 @@ "fast", | ||
"list": [ | ||
"travisci", | ||
"githubworkflow", | ||
"npmversion", | ||
@@ -88,2 +84,3 @@ "npmdownloads", | ||
"config": { | ||
"githubWorkflow": "bevry", | ||
"githubSponsorsUsername": "balupton", | ||
@@ -98,3 +95,2 @@ "buymeacoffeeUsername": "balupton", | ||
"wishlistURL": "https://bevry.me/wishlist", | ||
"travisTLD": "com", | ||
"githubUsername": "bevry", | ||
@@ -107,3 +103,3 @@ "githubRepository": "ansi", | ||
"funding": "https://bevry.me/fund", | ||
"author": "2020+ Benjamin Lupton <b@lupton.cc> (https://balupton.com), 2013 Thorsten Lorenz (https://www.twitch.tv/thlorenz)", | ||
"author": "2020+ Benjamin Lupton <b@lupton.cc> (https://balupton.com), 2013 Thorsten Lorenz <thlorenz10@gmail.com> (https://www.twitch.tv/thlorenz)", | ||
"maintainers": [ | ||
@@ -114,3 +110,4 @@ "Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)" | ||
"Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)", | ||
"Thorsten Lorenz (https://github.com/thlorenz)" | ||
"Thorsten Lorenz (https://github.com/thlorenz)", | ||
"Thorsten Lorenz <thlorenz10@gmail.com> (https://github.com/thlorenz)" | ||
], | ||
@@ -140,3 +137,3 @@ "bugs": { | ||
{ | ||
"description": "TypeScript compiled against ES2019 for web browsers with Import for modules", | ||
"description": "TypeScript compiled against ES2020 for web browsers with Import for modules", | ||
"directory": "edition-browsers", | ||
@@ -155,4 +152,4 @@ "entry": "index.js", | ||
{ | ||
"description": "TypeScript compiled against ESNext for Node.js 6 || 8 || 10 || 12 || 14 || 15 with Require for modules", | ||
"directory": "edition-esnext", | ||
"description": "TypeScript compiled against ES2019 for Node.js 6 || 8 || 10 || 12 || 14 with Require for modules", | ||
"directory": "edition-es2019", | ||
"entry": "index.js", | ||
@@ -162,7 +159,7 @@ "tags": [ | ||
"javascript", | ||
"esnext", | ||
"es2019", | ||
"require" | ||
], | ||
"engines": { | ||
"node": "6 || 8 || 10 || 12 || 14 || 15", | ||
"node": "6 || 8 || 10 || 12 || 14", | ||
"browsers": false | ||
@@ -172,3 +169,3 @@ } | ||
{ | ||
"description": "TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 15 with Require for modules", | ||
"description": "TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 with Require for modules", | ||
"directory": "edition-es5", | ||
@@ -183,3 +180,3 @@ "entry": "index.js", | ||
"engines": { | ||
"node": "4 || 6 || 8 || 10 || 12 || 14 || 15", | ||
"node": "4 || 6 || 8 || 10 || 12 || 14", | ||
"browsers": false | ||
@@ -189,4 +186,4 @@ } | ||
{ | ||
"description": "TypeScript compiled against ESNext for Node.js 12 || 14 || 15 with Import for modules", | ||
"directory": "edition-esnext-esm", | ||
"description": "TypeScript compiled against ES2019 for Node.js 12 || 14 with Import for modules", | ||
"directory": "edition-es2019-esm", | ||
"entry": "index.js", | ||
@@ -196,23 +193,9 @@ "tags": [ | ||
"javascript", | ||
"esnext", | ||
"es2019", | ||
"import" | ||
], | ||
"engines": { | ||
"node": "12 || 14 || 15", | ||
"node": "12 || 14", | ||
"browsers": false | ||
} | ||
}, | ||
{ | ||
"description": "TypeScript source code made to be compatible with Deno", | ||
"directory": "edition-deno", | ||
"entry": "index.ts", | ||
"tags": [ | ||
"typescript", | ||
"import", | ||
"deno" | ||
], | ||
"engines": { | ||
"deno": true, | ||
"browsers": true | ||
} | ||
} | ||
@@ -225,5 +208,5 @@ ], | ||
"node": { | ||
"import": "./edition-esnext-esm/index.js", | ||
"import": "./edition-es2019-esm/index.js", | ||
"default": "./index.cjs", | ||
"require": "./edition-esnext/index.js" | ||
"require": "./edition-es2019/index.js" | ||
}, | ||
@@ -234,25 +217,24 @@ "browser": { | ||
}, | ||
"deno": "edition-deno/index.ts", | ||
"browser": "edition-browsers/index.js", | ||
"module": "edition-browsers/index.js", | ||
"dependencies": { | ||
"editions": "^6.1.0" | ||
"editions": "^6.2.1" | ||
}, | ||
"devDependencies": { | ||
"@bevry/update-contributors": "^1.18.0", | ||
"@typescript-eslint/eslint-plugin": "^4.6.1", | ||
"@typescript-eslint/parser": "^4.6.1", | ||
"@typescript-eslint/eslint-plugin": "^4.28.5", | ||
"@typescript-eslint/parser": "^4.28.5", | ||
"assert-helpers": "^8.1.0", | ||
"eslint": "^7.12.1", | ||
"eslint": "^7.31.0", | ||
"eslint-config-bevry": "^3.23.0", | ||
"eslint-config-prettier": "^6.15.0", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"kava": "3.2.0", | ||
"make-deno-edition": "^1.2.0", | ||
"prettier": "^2.1.2", | ||
"projectz": "^2.17.0", | ||
"surge": "^0.21.6", | ||
"typedoc": "^0.19.2", | ||
"typescript": "^4.0.5", | ||
"valid-directory": "^3.5.0", | ||
"make-deno-edition": "^1.3.0", | ||
"prettier": "^2.3.2", | ||
"projectz": "^2.18.0", | ||
"surge": "^0.23.0", | ||
"typedoc": "^0.21.4", | ||
"typescript": "4.3.5", | ||
"valid-directory": "^3.7.0", | ||
"valid-module": "^1.15.0" | ||
@@ -262,8 +244,8 @@ }, | ||
"our:clean": "rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next", | ||
"our:compile": "npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es5 && npm run our:compile:edition-esnext && npm run our:compile:edition-esnext-esm && npm run our:compile:types", | ||
"our:compile": "npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-es5 && npm run our:compile:types", | ||
"our:compile:deno": "make-deno-edition --attempt", | ||
"our:compile:edition-browsers": "tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )", | ||
"our:compile:edition-browsers": "tsc --module ESNext --target ES2020 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )", | ||
"our:compile:edition-es2019": "tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json", | ||
"our:compile:edition-es2019-esm": "tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json", | ||
"our:compile:edition-es5": "tsc --module commonjs --target ES5 --outDir ./edition-es5 --project tsconfig.json && ( test ! -d edition-es5/source || ( mv edition-es5/source edition-temp && rm -Rf edition-es5 && mv edition-temp edition-es5 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es5/package.json", | ||
"our:compile:edition-esnext": "tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json", | ||
"our:compile:edition-esnext-esm": "tsc --module ESNext --target ESNext --outDir ./edition-esnext-esm --project tsconfig.json && ( test ! -d edition-esnext-esm/source || ( mv edition-esnext-esm/source edition-temp && rm -Rf edition-esnext-esm && mv edition-temp edition-esnext-esm ) ) && echo '{\"type\": \"module\"}' > edition-esnext-esm/package.json", | ||
"our:compile:types": "tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )", | ||
@@ -274,3 +256,3 @@ "our:deploy": "echo no need for this project", | ||
"our:meta:docs": "npm run our:meta:docs:typedoc", | ||
"our:meta:docs:typedoc": "rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source", | ||
"our:meta:docs:typedoc": "rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source", | ||
"our:meta:projectz": "projectz compile", | ||
@@ -281,3 +263,3 @@ "our:release": "npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push", | ||
"our:release:prepare": "npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta", | ||
"our:release:push": "git push origin master && git push origin --tags", | ||
"our:release:push": "git push origin && git push origin --tags", | ||
"our:release:tag": "export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"", | ||
@@ -284,0 +266,0 @@ "our:setup": "npm run our:setup:install", |
@@ -10,3 +10,3 @@ <!-- TITLE/ --> | ||
<span class="badge-travisci"><a href="http://travis-ci.com/bevry/ansi" title="Check this project's build status on TravisCI"><img src="https://img.shields.io/travis/com/bevry/ansi/master.svg" alt="Travis CI Build Status" /></a></span> | ||
<span class="badge-githubworkflow"><a href="https://github.com/bevry/ansi/actions?query=workflow%3Abevry" title="View the status of this project's GitHub Workflow: bevry"><img src="https://github.com/bevry/ansi/workflows/bevry/badge.svg" alt="Status of the GitHub Workflow: bevry" /></a></span> | ||
<span class="badge-npmversion"><a href="https://npmjs.org/package/@bevry/ansi" title="View this project on NPM"><img src="https://img.shields.io/npm/v/@bevry/ansi.svg" alt="NPM version" /></a></span> | ||
@@ -54,8 +54,2 @@ <span class="badge-npmdownloads"><a href="https://npmjs.org/package/@bevry/ansi" title="View this project on NPM"><img src="https://img.shields.io/npm/dm/@bevry/ansi.svg" alt="NPM downloads" /></a></span> | ||
<a href="https://deno.land" title="Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js"><h3>Deno</h3></a> | ||
``` typescript | ||
import * as pkg from 'https://unpkg.com/@bevry/ansi@^3.0.0/edition-deno/index.ts' | ||
``` | ||
<a href="https://www.skypack.dev" title="Skypack is a JavaScript Delivery Network for modern web apps"><h3>Skypack</h3></a> | ||
@@ -65,3 +59,3 @@ | ||
<script type="module"> | ||
import * as pkg from '//cdn.skypack.dev/@bevry/ansi@^3.0.0' | ||
import * as pkg from '//cdn.skypack.dev/@bevry/ansi@^3.1.0' | ||
</script> | ||
@@ -74,3 +68,3 @@ ``` | ||
<script type="module"> | ||
import * as pkg from '//unpkg.com/@bevry/ansi@^3.0.0' | ||
import * as pkg from '//unpkg.com/@bevry/ansi@^3.1.0' | ||
</script> | ||
@@ -83,3 +77,3 @@ ``` | ||
<script type="module"> | ||
import * as pkg from '//dev.jspm.io/@bevry/ansi@3.0.0' | ||
import * as pkg from '//dev.jspm.io/@bevry/ansi@3.1.0' | ||
</script> | ||
@@ -94,7 +88,6 @@ ``` | ||
<li><code>@bevry/ansi/source/index.ts</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> source code with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li> | ||
<li><code>@bevry/ansi/edition-browsers/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019" title="ECMAScript ES2019">ES2019</a> for web browsers with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li> | ||
<li><code>@bevry/ansi/edition-esnext/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#ES.Next" title="ECMAScript Next">ESNext</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 6 || 8 || 10 || 12 || 14 || 15 with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li> | ||
<li><code>@bevry/ansi/edition-es5/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against ES5 for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 4 || 6 || 8 || 10 || 12 || 14 || 15 with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li> | ||
<li><code>@bevry/ansi/edition-esnext-esm/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#ES.Next" title="ECMAScript Next">ESNext</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 12 || 14 || 15 with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li> | ||
<li><code>@bevry/ansi/edition-deno/index.ts</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> source code made to be compatible with <a href="https://deno.land" title="Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js">Deno</a></li></ul> | ||
<li><code>@bevry/ansi/edition-browsers/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#11th_Edition_–_ECMAScript_2020" title="ECMAScript ES2020">ES2020</a> for web browsers with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li> | ||
<li><code>@bevry/ansi/edition-es2019/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019" title="ECMAScript ES2019">ES2019</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 6 || 8 || 10 || 12 || 14 with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li> | ||
<li><code>@bevry/ansi/edition-es5/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against ES5 for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 4 || 6 || 8 || 10 || 12 || 14 with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li> | ||
<li><code>@bevry/ansi/edition-es2019-esm/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019" title="ECMAScript ES2019">ES2019</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 12 || 14 with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li></ul> | ||
@@ -151,3 +144,4 @@ <!-- /INSTALL --> | ||
<ul><li><a href="https://balupton.com">Benjamin Lupton</a> — <a href="https://github.com/bevry/ansi/commits?author=balupton" title="View the GitHub contributions of Benjamin Lupton on repository bevry/ansi">view contributions</a></li> | ||
<li><a href="https://github.com/thlorenz">Thorsten Lorenz</a> — <a href="https://github.com/bevry/ansi/commits?author=thlorenz" title="View the GitHub contributions of Thorsten Lorenz on repository bevry/ansi">view contributions</a></li></ul> | ||
<li><a href="https://github.com/thlorenz">Thorsten Lorenz</a> — <a href="https://github.com/bevry/ansi/commits?author=thlorenz" title="View the GitHub contributions of Thorsten Lorenz on repository bevry/ansi">view contributions</a></li> | ||
<li><a href="https://www.twitch.tv/thlorenz">Thorsten Lorenz</a> — <a href="https://github.com/bevry/ansi/commits?author=thlorenz" title="View the GitHub contributions of Thorsten Lorenz on repository bevry/ansi">view contributions</a></li></ul> | ||
@@ -154,0 +148,0 @@ <a href="https://github.com/bevry/ansi/blob/master/CONTRIBUTING.md#files">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a> |
@@ -9,4 +9,3 @@ { | ||
"strict": true, | ||
"target": "ESNext", | ||
"lib": ["ESNext"], | ||
"target": "ES2019", | ||
"module": "ESNext" | ||
@@ -13,0 +12,0 @@ }, |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
73073
25
999
1
160
1
Updatededitions@^6.2.1