pax_global_header00006660000000000000000000000064134141504270014513gustar00rootroot0000000000000052 comment=9776a2ae5b5b1712ccf16416b55f47e575a81fb9 chalk-2.4.2/000077500000000000000000000000001341415042700126025ustar00rootroot00000000000000chalk-2.4.2/.editorconfig000066400000000000000000000002571341415042700152630ustar00rootroot00000000000000root = 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-2.4.2/.flowconfig000066400000000000000000000001251341415042700147360ustar00rootroot00000000000000[ignore] .*/node_modules/.* [options] suppress_comment= \\(.\\|\n\\)*\\$ExpectError chalk-2.4.2/.gitattributes000066400000000000000000000000351341415042700154730ustar00rootroot00000000000000* text=auto *.js text eol=lf chalk-2.4.2/.gitignore000066400000000000000000000000541341415042700145710ustar00rootroot00000000000000node_modules yarn.lock coverage .nyc_output chalk-2.4.2/.npmrc000066400000000000000000000000231341415042700137150ustar00rootroot00000000000000package-lock=false chalk-2.4.2/.travis.yml000066400000000000000000000001241341415042700147100ustar00rootroot00000000000000language: node_js node_js: - '8' - '6' - '4' after_success: npm run coveralls chalk-2.4.2/benchmark.js000066400000000000000000000010431341415042700150700ustar00rootroot00000000000000/* globals set bench */ 'use strict'; const chalk = require('.'); suite('chalk', () => { set('iterations', 100000); bench('single style', () => { chalk.red('the fox jumps over the lazy dog'); }); bench('several styles', () => { chalk.blue.bgRed.bold('the fox jumps over the lazy dog'); }); const cached = chalk.blue.bgRed.bold; bench('cached styles', () => { cached('the fox jumps over the lazy dog'); }); bench('nested styles', () => { chalk.red('the fox jumps', chalk.underline.bgBlue('over the lazy dog') + '!'); }); }); chalk-2.4.2/code-of-conduct.md000066400000000000000000000062361341415042700161040ustar00rootroot00000000000000# 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-2.4.2/contributing.md000066400000000000000000000002771341415042700156410ustar00rootroot00000000000000# 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-2.4.2/examples/000077500000000000000000000000001341415042700144205ustar00rootroot00000000000000chalk-2.4.2/examples/rainbow.js000066400000000000000000000015111341415042700164150ustar00rootroot00000000000000'use strict'; const chalk = require('..'); const ignoreChars = /[^!-~]/; function rainbow(str, offset) { if (!str || str.length === 0) { return str; } const hueStep = 360 / str.replace(ignoreChars, '').length; let hue = offset % 360; const chars = []; for (const c of str) { if (c.match(ignoreChars)) { chars.push(c); } else { chars.push(chalk.hsl(hue, 100, 50)(c)); hue = (hue + hueStep) % 360; } } return chars.join(''); } const sleep = ms => new Promise(resolve => setTimeout(resolve, ms)); async function animateString(str) { console.log(); for (let i = 0; i < 360 * 5; i++) { console.log('\u001B[1F\u001B[G ', rainbow(str, i)); await sleep(2); // eslint-disable-line no-await-in-loop } } console.log(); animateString('We hope you enjoy the new version of Chalk 2! <3').then(() => console.log()); chalk-2.4.2/examples/screenshot.js000066400000000000000000000005351341415042700171360ustar00rootroot00000000000000'use strict'; const chalk = require('..'); const styles = require('ansi-styles'); // Generates screenshot for (const key of Object.keys(styles)) { let ret = key; if (key === 'reset' || key === 'hidden' || key === 'grey') { continue; } if (/^bg[^B]/.test(key)) { ret = chalk.black(ret); } process.stdout.write(chalk[key](ret) + ' '); } chalk-2.4.2/index.js000066400000000000000000000144471341415042700142610ustar00rootroot00000000000000'use strict'; const escapeStringRegexp = require('escape-string-regexp'); const ansiStyles = require('ansi-styles'); const stdoutColor = require('supports-color').stdout; const template = require('./templates.js'); const isSimpleWindowsTerm = process.platform === 'win32' && !(process.env.TERM || '').toLowerCase().startsWith('xterm'); // `supportsColor.level` → `ansiStyles.color[name]` mapping const levelMapping = ['ansi', 'ansi', 'ansi256', 'ansi16m']; // `color-convert` models to exclude from the Chalk API due to conflicts and such const skipModels = new Set(['gray']); const styles = Object.create(null); function applyOptions(obj, options) { options = options || {}; // Detect level if not set manually const scLevel = stdoutColor ? stdoutColor.level : 0; obj.level = options.level === undefined ? scLevel : options.level; obj.enabled = 'enabled' in options ? options.enabled : obj.level > 0; } function Chalk(options) { // We check for this.template here since calling `chalk.constructor()` // by itself will have a `this` of a previously constructed chalk object if (!this || !(this instanceof Chalk) || this.template) { const chalk = {}; applyOptions(chalk, options); chalk.template = function () { const args = [].slice.call(arguments); return chalkTag.apply(null, [chalk.template].concat(args)); }; Object.setPrototypeOf(chalk, Chalk.prototype); Object.setPrototypeOf(chalk.template, chalk); chalk.template.constructor = Chalk; return chalk.template; } applyOptions(this, options); } // Use bright blue on Windows as the normal blue color is illegible if (isSimpleWindowsTerm) { ansiStyles.blue.open = '\u001B[94m'; } for (const key of Object.keys(ansiStyles)) { ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g'); styles[key] = { get() { const codes = ansiStyles[key]; return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, key); } }; } styles.visible = { get() { return build.call(this, this._styles || [], true, 'visible'); } }; ansiStyles.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles.color.close), 'g'); for (const model of Object.keys(ansiStyles.color.ansi)) { if (skipModels.has(model)) { continue; } styles[model] = { get() { const level = this.level; return function () { const open = ansiStyles.color[levelMapping[level]][model].apply(null, arguments); const codes = { open, close: ansiStyles.color.close, closeRe: ansiStyles.color.closeRe }; return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model); }; } }; } ansiStyles.bgColor.closeRe = new RegExp(escapeStringRegexp(ansiStyles.bgColor.close), 'g'); for (const model of Object.keys(ansiStyles.bgColor.ansi)) { if (skipModels.has(model)) { continue; } const bgModel = 'bg' + model[0].toUpperCase() + model.slice(1); styles[bgModel] = { get() { const level = this.level; return function () { const open = ansiStyles.bgColor[levelMapping[level]][model].apply(null, arguments); const codes = { open, close: ansiStyles.bgColor.close, closeRe: ansiStyles.bgColor.closeRe }; return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model); }; } }; } const proto = Object.defineProperties(() => {}, styles); function build(_styles, _empty, key) { const builder = function () { return applyStyle.apply(builder, arguments); }; builder._styles = _styles; builder._empty = _empty; const self = this; Object.defineProperty(builder, 'level', { enumerable: true, get() { return self.level; }, set(level) { self.level = level; } }); Object.defineProperty(builder, 'enabled', { enumerable: true, get() { return self.enabled; }, set(enabled) { self.enabled = enabled; } }); // See below for fix regarding invisible grey/dim combination on Windows builder.hasGrey = this.hasGrey || key === 'gray' || key === 'grey'; // `__proto__` is used because we must return a function, but there is // no way to create a function with a different prototype builder.__proto__ = proto; // eslint-disable-line no-proto return builder; } function applyStyle() { // Support varags, but simply cast to string in case there's only one arg const args = arguments; const argsLen = args.length; let str = String(arguments[0]); if (argsLen === 0) { return ''; } if (argsLen > 1) { // Don't slice `arguments`, it prevents V8 optimizations for (let a = 1; a < argsLen; a++) { str += ' ' + args[a]; } } if (!this.enabled || this.level <= 0 || !str) { return this._empty ? '' : str; } // Turns out that on Windows dimmed gray text becomes invisible in cmd.exe, // see https://github.com/chalk/chalk/issues/58 // If we're on Windows and we're dealing with a gray color, temporarily make 'dim' a noop. const originalDim = ansiStyles.dim.open; if (isSimpleWindowsTerm && this.hasGrey) { ansiStyles.dim.open = ''; } for (const code of this._styles.slice().reverse()) { // Replace any instances already present with a re-opening code // otherwise only the part of the string until said closing code // will be colored, and the rest will simply be 'plain'. str = code.open + str.replace(code.closeRe, code.open) + code.close; // Close the styling before a linebreak and reopen // after next line to fix a bleed issue on macOS // https://github.com/chalk/chalk/pull/92 str = str.replace(/\r?\n/g, `${code.close}$&${code.open}`); } // Reset the original `dim` if we changed it to work around the Windows dimmed gray issue ansiStyles.dim.open = originalDim; return str; } function chalkTag(chalk, strings) { if (!Array.isArray(strings)) { // If chalk() was called by itself or with a string, // return the string itself as a string. return [].slice.call(arguments, 1).join(' '); } const args = [].slice.call(arguments, 2); const parts = [strings.raw[0]]; for (let i = 1; i < strings.length; i++) { parts.push(String(args[i - 1]).replace(/[{}\\]/g, '\\$&')); parts.push(String(strings.raw[i])); } return template(chalk, parts.join('')); } Object.defineProperties(Chalk.prototype, styles); module.exports = Chalk(); // eslint-disable-line new-cap module.exports.supportsColor = stdoutColor; module.exports.default = module.exports; // For TypeScript chalk-2.4.2/index.js.flow000066400000000000000000000036011341415042700152150ustar00rootroot00000000000000// @flow strict type TemplateStringsArray = $ReadOnlyArray; export type Level = $Values<{ None: 0, Basic: 1, Ansi256: 2, TrueColor: 3 }>; export type ChalkOptions = {| enabled?: boolean, level?: Level |}; export type ColorSupport = {| level: Level, hasBasic: boolean, has256: boolean, has16m: boolean |}; export interface Chalk { (...text: string[]): string, (text: TemplateStringsArray, ...placeholders: string[]): string, constructor(options?: ChalkOptions): Chalk, enabled: boolean, level: Level, rgb(r: number, g: number, b: number): Chalk, hsl(h: number, s: number, l: number): Chalk, hsv(h: number, s: number, v: number): Chalk, hwb(h: number, w: number, b: number): Chalk, bgHex(color: string): Chalk, bgKeyword(color: string): Chalk, bgRgb(r: number, g: number, b: number): Chalk, bgHsl(h: number, s: number, l: number): Chalk, bgHsv(h: number, s: number, v: number): Chalk, bgHwb(h: number, w: number, b: number): Chalk, hex(color: string): Chalk, keyword(color: string): Chalk, +reset: Chalk, +bold: Chalk, +dim: Chalk, +italic: Chalk, +underline: Chalk, +inverse: Chalk, +hidden: Chalk, +strikethrough: Chalk, +visible: Chalk, +black: Chalk, +red: Chalk, +green: Chalk, +yellow: Chalk, +blue: Chalk, +magenta: Chalk, +cyan: Chalk, +white: Chalk, +gray: Chalk, +grey: Chalk, +blackBright: Chalk, +redBright: Chalk, +greenBright: Chalk, +yellowBright: Chalk, +blueBright: Chalk, +magentaBright: Chalk, +cyanBright: Chalk, +whiteBright: Chalk, +bgBlack: Chalk, +bgRed: Chalk, +bgGreen: Chalk, +bgYellow: Chalk, +bgBlue: Chalk, +bgMagenta: Chalk, +bgCyan: Chalk, +bgWhite: Chalk, +bgBlackBright: Chalk, +bgRedBright: Chalk, +bgGreenBright: Chalk, +bgYellowBright: Chalk, +bgBlueBright: Chalk, +bgMagentaBright: Chalk, +bgCyanBright: Chalk, +bgWhiteBrigh: Chalk, supportsColor: ColorSupport }; declare module.exports: Chalk; chalk-2.4.2/license000066400000000000000000000021251341415042700141470ustar00rootroot00000000000000MIT 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-2.4.2/media/000077500000000000000000000000001341415042700136615ustar00rootroot00000000000000chalk-2.4.2/media/logo.png000066400000000000000000000621141341415042700153330ustar00rootroot00000000000000PNG  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ը튊튊튊튊vvvvvvrrըثv튊.[tRNS@@@@00`0Ͽ@0π`` `0@ `0 PPpϯpP߯ ߟ`PpppP pPb}IDATx^Wo"M[$@  Iȉ 69[S{089]CujiVS:>Z0x9a q/ӗn|r3EȌX@qƑ9+u~CxZ|gљ_VО|Y\ZgBN$w {{Ш m|,l<13-_[Jߜu"e_|^o{:MW5sG8DOt1<=_.J:+ziJ*>ǂa[Lf/ P>??jЁyOb;ei:z?o~$2O:{J+^wfAQ{-~!*R۶Z1ww7gc5_{pkP;Jhu+H#Q2I/A~\0G[!pE:ߠ`P BLLi~p-; ~~>'ow&*tsX9\eAJ.[6w =%0&}(W bm#^⍝wb l7J&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}/W$RߔXd E+?Ro("^"/7]]1y^TKIENDB`chalk-2.4.2/media/logo.svg000066400000000000000000002170451341415042700153530ustar00rootroot00000000000000chalk-2.4.2/package.json000066400000000000000000000022531341415042700150720ustar00rootroot00000000000000{ "name": "chalk", "version": "2.4.2", "description": "Terminal string styling done right", "license": "MIT", "repository": "chalk/chalk", "engines": { "node": ">=4" }, "scripts": { "test": "xo && tsc --project types && flow --max-warnings=0 && nyc ava", "bench": "matcha benchmark.js", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js", "templates.js", "types/index.d.ts", "index.js.flow" ], "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": "^3.2.1", "escape-string-regexp": "^1.0.5", "supports-color": "^5.3.0" }, "devDependencies": { "ava": "*", "coveralls": "^3.0.0", "execa": "^0.9.0", "flow-bin": "^0.68.0", "import-fresh": "^2.0.0", "matcha": "^0.7.0", "nyc": "^11.0.2", "resolve-from": "^4.0.0", "typescript": "^2.5.3", "xo": "*" }, "types": "types/index.d.ts", "xo": { "envs": [ "node", "mocha" ], "ignores": [ "test/_flow.js" ] } } chalk-2.4.2/readme.md000066400000000000000000000250261341415042700143660ustar00rootroot00000000000000



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) [![](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) [![Mentioned in Awesome Node.js](https://awesome.re/mentioned-badge.svg)](https://github.com/sindresorhus/awesome-nodejs) ### [See what's new in Chalk 2](https://github.com/chalk/chalk/releases/tag/v2.0.0) ## 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 ~23,000 packages](https://www.npmjs.com/browse/depended/chalk) as of December 31, 2017 ## 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.`