pax_global_header00006660000000000000000000000064141007651040014510gustar00rootroot0000000000000052 comment=95d74cbe8d3df3674dec1445a4608d3288d8b73c chalk-4.1.2/000077500000000000000000000000001410076510400125765ustar00rootroot00000000000000chalk-4.1.2/.editorconfig000066400000000000000000000002571410076510400152570ustar00rootroot00000000000000root = true [*] indent_style = tab end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true [*.yml] indent_style = space indent_size = 2 chalk-4.1.2/.gitattributes000066400000000000000000000000231410076510400154640ustar00rootroot00000000000000* text=auto eol=lf chalk-4.1.2/.github/000077500000000000000000000000001410076510400141365ustar00rootroot00000000000000chalk-4.1.2/.github/funding.yml000066400000000000000000000002051410076510400163100ustar00rootroot00000000000000github: sindresorhus open_collective: sindresorhus patreon: sindresorhus tidelift: npm/chalk custom: https://sindresorhus.com/donate chalk-4.1.2/.github/security.md000066400000000000000000000002631410076510400163300ustar00rootroot00000000000000# Security Policy To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure. chalk-4.1.2/.gitignore000066400000000000000000000000541410076510400145650ustar00rootroot00000000000000node_modules yarn.lock coverage .nyc_output chalk-4.1.2/.npmrc000066400000000000000000000000231410076510400137110ustar00rootroot00000000000000package-lock=false chalk-4.1.2/.replit000066400000000000000000000000701410076510400140730ustar00rootroot00000000000000language = "nodejs" run = "cd examples && node rainbow" chalk-4.1.2/.travis.yml000066400000000000000000000002261410076510400147070ustar00rootroot00000000000000language: node_js node_js: - '12' - '10' after_success: - './node_modules/.bin/nyc report --reporter=text-lcov | ./node_modules/.bin/coveralls' chalk-4.1.2/benchmark.js000066400000000000000000000030271410076510400150700ustar00rootroot00000000000000/* globals suite, set, bench */ 'use strict'; const chalk = require('.'); suite('chalk', () => { set('iterations', 1000000); const chalkRed = chalk.red; const chalkBgRed = chalk.bgRed; const chalkBlueBgRed = chalk.blue.bgRed; const chalkBlueBgRedBold = chalk.blue.bgRed.bold; const blueStyledString = 'the fox jumps' + chalk.blue('over the lazy dog') + '!'; bench('1 style', () => { chalk.red('the fox jumps over the lazy dog'); }); bench('2 styles', () => { chalk.blue.bgRed('the fox jumps over the lazy dog'); }); bench('3 styles', () => { chalk.blue.bgRed.bold('the fox jumps over the lazy dog'); }); bench('cached: 1 style', () => { chalkRed('the fox jumps over the lazy dog'); }); bench('cached: 2 styles', () => { chalkBlueBgRed('the fox jumps over the lazy dog'); }); bench('cached: 3 styles', () => { chalkBlueBgRedBold('the fox jumps over the lazy dog'); }); bench('cached: 1 style with newline', () => { chalkRed('the fox jumps\nover the lazy dog'); }); bench('cached: 1 style nested intersecting', () => { chalkRed(blueStyledString); }); bench('cached: 1 style nested non-intersecting', () => { chalkBgRed(blueStyledString); }); set('iterations', 10000); bench('cached: 1 style template literal', () => { // eslint-disable-next-line no-unused-expressions chalkRed`the fox jumps over the lazy dog`; }); bench('cached: nested styles template literal', () => { // eslint-disable-next-line no-unused-expressions chalkRed`the fox {bold jumps} over the {underline lazy} dog`; }); }); chalk-4.1.2/code-of-conduct.md000066400000000000000000000062361410076510400161000ustar00rootroot00000000000000# Contributor Covenant Code of Conduct ## Our Pledge In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. ## Our Standards Examples of behavior that contributes to creating a positive environment include: * Using welcoming and inclusive language * Being respectful of differing viewpoints and experiences * Gracefully accepting constructive criticism * Focusing on what is best for the community * Showing empathy towards other community members Examples of unacceptable behavior by participants include: * The use of sexualized language or imagery and unwelcome sexual attention or advances * Trolling, insulting/derogatory comments, and personal or political attacks * Public or private harassment * Publishing others' private information, such as a physical or electronic address, without explicit permission * Other conduct which could reasonably be considered inappropriate in a professional setting ## Our Responsibilities Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. ## Scope This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at sindresorhus@gmail.com. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. ## Attribution This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] [homepage]: http://contributor-covenant.org [version]: http://contributor-covenant.org/version/1/4/ chalk-4.1.2/contributing.md000066400000000000000000000002771410076510400156350ustar00rootroot00000000000000# Contributing to Chalk Please note that this project is released with a [Contributor Code of Conduct](code-of-conduct.md). By participating in this project you agree to abide by its terms. chalk-4.1.2/examples/000077500000000000000000000000001410076510400144145ustar00rootroot00000000000000chalk-4.1.2/examples/rainbow.js000066400000000000000000000016471410076510400164230ustar00rootroot00000000000000'use strict'; const chalk = require('..'); const ignoreChars = /[^!-~]/g; const delay = milliseconds => new Promise(resolve => setTimeout(resolve, milliseconds)); function rainbow(string, offset) { if (!string || string.length === 0) { return string; } const hueStep = 360 / string.replace(ignoreChars, '').length; let hue = offset % 360; const characters = []; for (const character of string) { if (character.match(ignoreChars)) { characters.push(character); } else { characters.push(chalk.hsl(hue, 100, 50)(character)); hue = (hue + hueStep) % 360; } } return characters.join(''); } async function animateString(string) { console.log(); for (let i = 0; i < 360 * 5; i++) { console.log('\u001B[1F\u001B[G', rainbow(string, i)); await delay(2); // eslint-disable-line no-await-in-loop } } (async () => { console.log(); await animateString('We hope you enjoy Chalk! <3'); console.log(); })(); chalk-4.1.2/examples/screenshot.js000066400000000000000000000005751410076510400171360ustar00rootroot00000000000000'use strict'; const styles = require('ansi-styles'); const chalk = require('..'); // Generates screenshot for (const key of Object.keys(styles)) { let returnValue = key; if (key === 'reset' || key === 'hidden' || key === 'grey') { continue; } if (/^bg[^B]/.test(key)) { returnValue = chalk.black(returnValue); } process.stdout.write(chalk[key](returnValue) + ' '); } chalk-4.1.2/index.d.ts000066400000000000000000000213031410076510400144760ustar00rootroot00000000000000/** Basic foreground colors. [More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support) */ declare type ForegroundColor = | 'black' | 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'white' | 'gray' | 'grey' | 'blackBright' | 'redBright' | 'greenBright' | 'yellowBright' | 'blueBright' | 'magentaBright' | 'cyanBright' | 'whiteBright'; /** Basic background colors. [More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support) */ declare type BackgroundColor = | 'bgBlack' | 'bgRed' | 'bgGreen' | 'bgYellow' | 'bgBlue' | 'bgMagenta' | 'bgCyan' | 'bgWhite' | 'bgGray' | 'bgGrey' | 'bgBlackBright' | 'bgRedBright' | 'bgGreenBright' | 'bgYellowBright' | 'bgBlueBright' | 'bgMagentaBright' | 'bgCyanBright' | 'bgWhiteBright'; /** Basic colors. [More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support) */ declare type Color = ForegroundColor | BackgroundColor; declare type Modifiers = | 'reset' | 'bold' | 'dim' | 'italic' | 'underline' | 'inverse' | 'hidden' | 'strikethrough' | 'visible'; declare namespace chalk { /** Levels: - `0` - All colors disabled. - `1` - Basic 16 colors support. - `2` - ANSI 256 colors support. - `3` - Truecolor 16 million colors support. */ type Level = 0 | 1 | 2 | 3; interface Options { /** Specify the color support for Chalk. By default, color support is automatically detected based on the environment. Levels: - `0` - All colors disabled. - `1` - Basic 16 colors support. - `2` - ANSI 256 colors support. - `3` - Truecolor 16 million colors support. */ level?: Level; } /** Return a new Chalk instance. */ type Instance = new (options?: Options) => Chalk; /** Detect whether the terminal supports color. */ interface ColorSupport { /** The color level used by Chalk. */ level: Level; /** Return whether Chalk supports basic 16 colors. */ hasBasic: boolean; /** Return whether Chalk supports ANSI 256 colors. */ has256: boolean; /** Return whether Chalk supports Truecolor 16 million colors. */ has16m: boolean; } interface ChalkFunction { /** Use a template string. @remarks Template literals are unsupported for nested calls (see [issue #341](https://github.com/chalk/chalk/issues/341)) @example ``` import chalk = require('chalk'); log(chalk` CPU: {red ${cpu.totalPercent}%} RAM: {green ${ram.used / ram.total * 100}%} DISK: {rgb(255,131,0) ${disk.used / disk.total * 100}%} `); ``` @example ``` import chalk = require('chalk'); log(chalk.red.bgBlack`2 + 3 = {bold ${2 + 3}}`) ``` */ (text: TemplateStringsArray, ...placeholders: unknown[]): string; (...text: unknown[]): string; } interface Chalk extends ChalkFunction { /** Return a new Chalk instance. */ Instance: Instance; /** The color support for Chalk. By default, color support is automatically detected based on the environment. Levels: - `0` - All colors disabled. - `1` - Basic 16 colors support. - `2` - ANSI 256 colors support. - `3` - Truecolor 16 million colors support. */ level: Level; /** Use HEX value to set text color. @param color - Hexadecimal value representing the desired color. @example ``` import chalk = require('chalk'); chalk.hex('#DEADED'); ``` */ hex(color: string): Chalk; /** Use keyword color value to set text color. @param color - Keyword value representing the desired color. @example ``` import chalk = require('chalk'); chalk.keyword('orange'); ``` */ keyword(color: string): Chalk; /** Use RGB values to set text color. */ rgb(red: number, green: number, blue: number): Chalk; /** Use HSL values to set text color. */ hsl(hue: number, saturation: number, lightness: number): Chalk; /** Use HSV values to set text color. */ hsv(hue: number, saturation: number, value: number): Chalk; /** Use HWB values to set text color. */ hwb(hue: number, whiteness: number, blackness: number): Chalk; /** Use a [Select/Set Graphic Rendition](https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters) (SGR) [color code number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit) to set text color. 30 <= code && code < 38 || 90 <= code && code < 98 For example, 31 for red, 91 for redBright. */ ansi(code: number): Chalk; /** Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color. */ ansi256(index: number): Chalk; /** Use HEX value to set background color. @param color - Hexadecimal value representing the desired color. @example ``` import chalk = require('chalk'); chalk.bgHex('#DEADED'); ``` */ bgHex(color: string): Chalk; /** Use keyword color value to set background color. @param color - Keyword value representing the desired color. @example ``` import chalk = require('chalk'); chalk.bgKeyword('orange'); ``` */ bgKeyword(color: string): Chalk; /** Use RGB values to set background color. */ bgRgb(red: number, green: number, blue: number): Chalk; /** Use HSL values to set background color. */ bgHsl(hue: number, saturation: number, lightness: number): Chalk; /** Use HSV values to set background color. */ bgHsv(hue: number, saturation: number, value: number): Chalk; /** Use HWB values to set background color. */ bgHwb(hue: number, whiteness: number, blackness: number): Chalk; /** Use a [Select/Set Graphic Rendition](https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters) (SGR) [color code number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit) to set background color. 30 <= code && code < 38 || 90 <= code && code < 98 For example, 31 for red, 91 for redBright. Use the foreground code, not the background code (for example, not 41, nor 101). */ bgAnsi(code: number): Chalk; /** Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set background color. */ bgAnsi256(index: number): Chalk; /** Modifier: Resets the current color chain. */ readonly reset: Chalk; /** Modifier: Make text bold. */ readonly bold: Chalk; /** Modifier: Emitting only a small amount of light. */ readonly dim: Chalk; /** Modifier: Make text italic. (Not widely supported) */ readonly italic: Chalk; /** Modifier: Make text underline. (Not widely supported) */ readonly underline: Chalk; /** Modifier: Inverse background and foreground colors. */ readonly inverse: Chalk; /** Modifier: Prints the text, but makes it invisible. */ readonly hidden: Chalk; /** Modifier: Puts a horizontal line through the center of the text. (Not widely supported) */ readonly strikethrough: Chalk; /** Modifier: Prints the text only when Chalk has a color support level > 0. Can be useful for things that are purely cosmetic. */ readonly visible: Chalk; readonly black: Chalk; readonly red: Chalk; readonly green: Chalk; readonly yellow: Chalk; readonly blue: Chalk; readonly magenta: Chalk; readonly cyan: Chalk; readonly white: Chalk; /* Alias for `blackBright`. */ readonly gray: Chalk; /* Alias for `blackBright`. */ readonly grey: Chalk; readonly blackBright: Chalk; readonly redBright: Chalk; readonly greenBright: Chalk; readonly yellowBright: Chalk; readonly blueBright: Chalk; readonly magentaBright: Chalk; readonly cyanBright: Chalk; readonly whiteBright: Chalk; readonly bgBlack: Chalk; readonly bgRed: Chalk; readonly bgGreen: Chalk; readonly bgYellow: Chalk; readonly bgBlue: Chalk; readonly bgMagenta: Chalk; readonly bgCyan: Chalk; readonly bgWhite: Chalk; /* Alias for `bgBlackBright`. */ readonly bgGray: Chalk; /* Alias for `bgBlackBright`. */ readonly bgGrey: Chalk; readonly bgBlackBright: Chalk; readonly bgRedBright: Chalk; readonly bgGreenBright: Chalk; readonly bgYellowBright: Chalk; readonly bgBlueBright: Chalk; readonly bgMagentaBright: Chalk; readonly bgCyanBright: Chalk; readonly bgWhiteBright: Chalk; } } /** Main Chalk object that allows to chain styles together. Call the last one as a method with a string argument. Order doesn't matter, and later styles take precedent in case of a conflict. This simply means that `chalk.red.yellow.green` is equivalent to `chalk.green`. */ declare const chalk: chalk.Chalk & chalk.ChalkFunction & { supportsColor: chalk.ColorSupport | false; Level: chalk.Level; Color: Color; ForegroundColor: ForegroundColor; BackgroundColor: BackgroundColor; Modifiers: Modifiers; stderr: chalk.Chalk & {supportsColor: chalk.ColorSupport | false}; }; export = chalk; chalk-4.1.2/index.test-d.ts000066400000000000000000000140701410076510400154560ustar00rootroot00000000000000import {expectType, expectError} from 'tsd'; import chalk = require('.'); // - Helpers - type colorReturn = chalk.Chalk & {supportsColor?: never}; // - supportsColor - expectType(chalk.supportsColor); if (chalk.supportsColor) { expectType(chalk.supportsColor.hasBasic); expectType(chalk.supportsColor.has256); expectType(chalk.supportsColor.has16m); } // - stderr - expectType(chalk.stderr); expectType(chalk.stderr.supportsColor); if (chalk.stderr.supportsColor) { expectType(chalk.stderr.supportsColor.hasBasic); expectType(chalk.stderr.supportsColor.has256); expectType(chalk.stderr.supportsColor.has16m); } // -- `stderr` is not a member of the Chalk interface -- expectError(chalk.reset.stderr); // -- `supportsColor` is not a member of the Chalk interface -- expectError(chalk.reset.supportsColor); // - Chalk - // -- Instance -- expectType(new chalk.Instance({level: 1})); // -- Properties -- expectType(chalk.level); // -- Template literal -- expectType(chalk``); const name = 'John'; expectType(chalk`Hello {bold.red ${name}}`); expectType(chalk`Works with numbers {bold.red ${1}}`); // -- Color methods -- expectType(chalk.hex('#DEADED')); expectType(chalk.keyword('orange')); expectType(chalk.rgb(0, 0, 0)); expectType(chalk.hsl(0, 0, 0)); expectType(chalk.hsv(0, 0, 0)); expectType(chalk.hwb(0, 0, 0)); expectType(chalk.ansi(30)); expectType(chalk.ansi256(0)); expectType(chalk.bgHex('#DEADED')); expectType(chalk.bgKeyword('orange')); expectType(chalk.bgRgb(0, 0, 0)); expectType(chalk.bgHsl(0, 0, 0)); expectType(chalk.bgHsv(0, 0, 0)); expectType(chalk.bgHwb(0, 0, 0)); expectType(chalk.bgAnsi(30)); expectType(chalk.bgAnsi256(0)); // -- Modifiers -- expectType(chalk.reset('foo')); expectType(chalk.bold('foo')); expectType(chalk.dim('foo')); expectType(chalk.italic('foo')); expectType(chalk.underline('foo')); expectType(chalk.inverse('foo')); expectType(chalk.hidden('foo')); expectType(chalk.strikethrough('foo')); expectType(chalk.visible('foo')); expectType(chalk.reset`foo`); expectType(chalk.bold`foo`); expectType(chalk.dim`foo`); expectType(chalk.italic`foo`); expectType(chalk.underline`foo`); expectType(chalk.inverse`foo`); expectType(chalk.hidden`foo`); expectType(chalk.strikethrough`foo`); expectType(chalk.visible`foo`); // -- Colors -- expectType(chalk.black('foo')); expectType(chalk.red('foo')); expectType(chalk.green('foo')); expectType(chalk.yellow('foo')); expectType(chalk.blue('foo')); expectType(chalk.magenta('foo')); expectType(chalk.cyan('foo')); expectType(chalk.white('foo')); expectType(chalk.gray('foo')); expectType(chalk.grey('foo')); expectType(chalk.blackBright('foo')); expectType(chalk.redBright('foo')); expectType(chalk.greenBright('foo')); expectType(chalk.yellowBright('foo')); expectType(chalk.blueBright('foo')); expectType(chalk.magentaBright('foo')); expectType(chalk.cyanBright('foo')); expectType(chalk.whiteBright('foo')); expectType(chalk.bgBlack('foo')); expectType(chalk.bgRed('foo')); expectType(chalk.bgGreen('foo')); expectType(chalk.bgYellow('foo')); expectType(chalk.bgBlue('foo')); expectType(chalk.bgMagenta('foo')); expectType(chalk.bgCyan('foo')); expectType(chalk.bgWhite('foo')); expectType(chalk.bgBlackBright('foo')); expectType(chalk.bgRedBright('foo')); expectType(chalk.bgGreenBright('foo')); expectType(chalk.bgYellowBright('foo')); expectType(chalk.bgBlueBright('foo')); expectType(chalk.bgMagentaBright('foo')); expectType(chalk.bgCyanBright('foo')); expectType(chalk.bgWhiteBright('foo')); expectType(chalk.black`foo`); expectType(chalk.red`foo`); expectType(chalk.green`foo`); expectType(chalk.yellow`foo`); expectType(chalk.blue`foo`); expectType(chalk.magenta`foo`); expectType(chalk.cyan`foo`); expectType(chalk.white`foo`); expectType(chalk.gray`foo`); expectType(chalk.grey`foo`); expectType(chalk.blackBright`foo`); expectType(chalk.redBright`foo`); expectType(chalk.greenBright`foo`); expectType(chalk.yellowBright`foo`); expectType(chalk.blueBright`foo`); expectType(chalk.magentaBright`foo`); expectType(chalk.cyanBright`foo`); expectType(chalk.whiteBright`foo`); expectType(chalk.bgBlack`foo`); expectType(chalk.bgRed`foo`); expectType(chalk.bgGreen`foo`); expectType(chalk.bgYellow`foo`); expectType(chalk.bgBlue`foo`); expectType(chalk.bgMagenta`foo`); expectType(chalk.bgCyan`foo`); expectType(chalk.bgWhite`foo`); expectType(chalk.bgBlackBright`foo`); expectType(chalk.bgRedBright`foo`); expectType(chalk.bgGreenBright`foo`); expectType(chalk.bgYellowBright`foo`); expectType(chalk.bgBlueBright`foo`); expectType(chalk.bgMagentaBright`foo`); expectType(chalk.bgCyanBright`foo`); expectType(chalk.bgWhiteBright`foo`); // -- Complex -- expectType(chalk.red.bgGreen.underline('foo')); expectType(chalk.underline.red.bgGreen('foo')); // -- Complex template literal -- expectType(chalk.underline``); expectType(chalk.red.bgGreen.bold`Hello {italic.blue ${name}}`); expectType(chalk.strikethrough.cyanBright.bgBlack`Works with {reset {bold numbers}} {bold.red ${1}}`); // -- Color types == expectType('red'); expectError('hotpink'); chalk-4.1.2/license000066400000000000000000000021251410076510400141430ustar00rootroot00000000000000MIT License Copyright (c) Sindre Sorhus (sindresorhus.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 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. chalk-4.1.2/media/000077500000000000000000000000001410076510400136555ustar00rootroot00000000000000chalk-4.1.2/media/logo.png000066400000000000000000000621141410076510400153270ustar00rootroot00000000000000PNG  IHDRa#PLTErקըrثثrrrrըrثثקըrըrקըثrrrثr튊ثקըը튊rrث튊rקը튊rrثrקըrvv튊vvاը튊r튊튊v튊vrثrثثrrrثvثثr튊r튊ըvrvاըըըrը튊튊튊튊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5HY\-Gj>JgSr{b*C4P ʣP*#GTTvhJ{)0RBS-_Jk,-Nŀb!ݻ3AJ-]X(R/*j(ylySv|Sh hC)*T,(n LR/)0W-/n5.x)ό %=D荂IwJJn +PV>7ӡeWv+J<ZzS8Sw,C>iR ^Πo;4R䰺 JgFS)XRT(r*] {]+iUQO%=UTcʤ_3sOtœ jX#+R]џD%\A?3"0%TvR 2EQ/Jk1nVKqKIȭAՈ)wFG* rU@QI?(y)b)hpR*EC͠eE 6RRߢ~Vc;JTVci'"QvD/~)RT"SIsXRJ `"#gէ"Fz FY&WJie+XRBJ]|*:`*ҿ('%*~))jR_S *FJ#ԩu R) VC҆9}/W$RߔXd E+?Ro("^"/7]]1y^TKIENDB`chalk-4.1.2/media/logo.svg000066400000000000000000002170451410076510400153470ustar00rootroot00000000000000chalk-4.1.2/package.json000066400000000000000000000022551410076510400150700ustar00rootroot00000000000000{ "name": "chalk", "version": "4.1.2", "description": "Terminal string styling done right", "license": "MIT", "repository": "chalk/chalk", "funding": "https://github.com/chalk/chalk?sponsor=1", "main": "source", "engines": { "node": ">=10" }, "scripts": { "test": "xo && nyc ava && tsd", "bench": "matcha benchmark.js" }, "files": [ "source", "index.d.ts" ], "keywords": [ "color", "colour", "colors", "terminal", "console", "cli", "string", "str", "ansi", "style", "styles", "tty", "formatting", "rgb", "256", "shell", "xterm", "log", "logging", "command-line", "text" ], "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" }, "devDependencies": { "ava": "^2.4.0", "coveralls": "^3.0.7", "execa": "^4.0.0", "import-fresh": "^3.1.0", "matcha": "^0.7.0", "nyc": "^15.0.0", "resolve-from": "^5.0.0", "tsd": "^0.7.4", "xo": "^0.28.2" }, "xo": { "rules": { "unicorn/prefer-string-slice": "off", "unicorn/prefer-includes": "off", "@typescript-eslint/member-ordering": "off", "no-redeclare": "off", "unicorn/string-content": "off", "unicorn/better-regex": "off" } } } chalk-4.1.2/readme.md000066400000000000000000000320651410076510400143630ustar00rootroot00000000000000



Chalk


> Terminal string styling done right [![Build Status](https://travis-ci.org/chalk/chalk.svg?branch=master)](https://travis-ci.org/chalk/chalk) [![Coverage Status](https://coveralls.io/repos/github/chalk/chalk/badge.svg?branch=master)](https://coveralls.io/github/chalk/chalk?branch=master) [![npm dependents](https://badgen.net/npm/dependents/chalk)](https://www.npmjs.com/package/chalk?activeTab=dependents) [![Downloads](https://badgen.net/npm/dt/chalk)](https://www.npmjs.com/package/chalk) [![](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) ![TypeScript-ready](https://img.shields.io/npm/types/chalk.svg) [![run on repl.it](https://repl.it/badge/github/chalk/chalk)](https://repl.it/github/chalk/chalk)
--- ---
## Highlights - Expressive API - Highly performant - Ability to nest styles - [256/Truecolor color support](#256-and-truecolor-color-support) - Auto-detects color support - Doesn't extend `String.prototype` - Clean and focused - Actively maintained - [Used by ~50,000 packages](https://www.npmjs.com/browse/depended/chalk) as of January 1, 2020 ## Install ```console $ npm install chalk ``` ## Usage ```js const chalk = require('chalk'); console.log(chalk.blue('Hello world!')); ``` Chalk comes with an easy to use composable API where you just chain and nest the styles you want. ```js const chalk = require('chalk'); const log = console.log; // Combine styled and normal strings log(chalk.blue('Hello') + ' World' + chalk.red('!')); // Compose multiple styles using the chainable API log(chalk.blue.bgRed.bold('Hello world!')); // Pass in multiple arguments log(chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz')); // Nest styles log(chalk.red('Hello', chalk.underline.bgBlue('world') + '!')); // Nest styles of the same type even (color, underline, background) log(chalk.green( 'I am a green line ' + chalk.blue.underline.bold('with a blue substring') + ' that becomes green again!' )); // ES2015 template literal log(` CPU: ${chalk.red('90%')} RAM: ${chalk.green('40%')} DISK: ${chalk.yellow('70%')} `); // ES2015 tagged template literal log(chalk` CPU: {red ${cpu.totalPercent}%} RAM: {green ${ram.used / ram.total * 100}%} DISK: {rgb(255,131,0) ${disk.used / disk.total * 100}%} `); // Use RGB colors in terminal emulators that support it. log(chalk.keyword('orange')('Yay for orange colored text!')); log(chalk.rgb(123, 45, 67).underline('Underlined reddish color')); log(chalk.hex('#DEADED').bold('Bold gray!')); ``` Easily define your own themes: ```js const chalk = require('chalk'); const error = chalk.bold.red; const warning = chalk.keyword('orange'); console.log(error('Error!')); console.log(warning('Warning!')); ``` Take advantage of console.log [string substitution](https://nodejs.org/docs/latest/api/console.html#console_console_log_data_args): ```js const name = 'Sindre'; console.log(chalk.green('Hello %s'), name); //=> 'Hello Sindre' ``` ## API ### chalk.`