Changeset 0c6b92a for imaps-frontend/node_modules/ansi-styles/readme.md
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/ansi-styles/readme.md
rd565449 r0c6b92a 1 1 # ansi-styles [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](https://travis-ci.org/chalk/ansi-styles) 2 2 3 > [ANSI escape codes](http ://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal3 > [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal 4 4 5 5 You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings. 6 6 7 <img src="https://cdn.rawgit.com/chalk/ansi-styles/8261697c95bf34b6c7767e2cbe9941a851d59385/screenshot.svg" width="900"> 8 7 <img src="screenshot.svg" width="900"> 9 8 10 9 ## Install … … 13 12 $ npm install ansi-styles 14 13 ``` 15 16 14 17 15 ## Usage … … 30 28 console.log(style.bgColor.ansi.hsl(120, 80, 72) + 'Hello world!' + style.bgColor.close); 31 29 console.log(style.color.ansi256.rgb(199, 20, 250) + 'Hello world!' + style.color.close); 32 console.log(style.color.ansi16m.hex('# ABCDEF') + 'Hello world!' + style.color.close);30 console.log(style.color.ansi16m.hex('#abcdef') + 'Hello world!' + style.color.close); 33 31 ``` 34 32 … … 36 34 37 35 Each style has an `open` and `close` property. 38 39 36 40 37 ## Styles … … 61 58 - `cyan` 62 59 - `white` 63 - ` gray` ("bright black")60 - `blackBright` (alias: `gray`, `grey`) 64 61 - `redBright` 65 62 - `greenBright` … … 80 77 - `bgCyan` 81 78 - `bgWhite` 82 - `bgBlackBright` 79 - `bgBlackBright` (alias: `bgGray`, `bgGrey`) 83 80 - `bgRedBright` 84 81 - `bgGreenBright` … … 88 85 - `bgCyanBright` 89 86 - `bgWhiteBright` 90 91 87 92 88 ## Advanced usage … … 113 109 ``` 114 110 115 116 111 ## [256 / 16 million (TrueColor) support](https://gist.github.com/XVilka/8346728) 117 112 118 113 `ansi-styles` uses the [`color-convert`](https://github.com/Qix-/color-convert) package to allow for converting between various colors and ANSI escapes, with support for 256 and 16 million colors. 114 115 The following color spaces from `color-convert` are supported: 116 117 - `rgb` 118 - `hex` 119 - `keyword` 120 - `hsl` 121 - `hsv` 122 - `hwb` 123 - `ansi` 124 - `ansi256` 119 125 120 126 To use these, call the associated conversion function with the intended output, for example: … … 131 137 ``` 132 138 133 134 139 ## Related 135 140 136 141 - [ansi-escapes](https://github.com/sindresorhus/ansi-escapes) - ANSI escape codes for manipulating the terminal 137 138 142 139 143 ## Maintainers … … 142 146 - [Josh Junon](https://github.com/qix-) 143 147 148 ## For enterprise 144 149 145 ## License 150 Available as part of the Tidelift Subscription. 146 151 147 MIT 152 The maintainers of `ansi-styles` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-ansi-styles?utm_source=npm-ansi-styles&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
Note:
See TracChangeset
for help on using the changeset viewer.