Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/ansi-styles/readme.md

    rd565449 r0c6b92a  
    11# ansi-styles [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](https://travis-ci.org/chalk/ansi-styles)
    22
    3 > [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal
     3> [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal
    44
    55You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings.
    66
    7 <img src="https://cdn.rawgit.com/chalk/ansi-styles/8261697c95bf34b6c7767e2cbe9941a851d59385/screenshot.svg" width="900">
    8 
     7<img src="screenshot.svg" width="900">
    98
    109## Install
     
    1312$ npm install ansi-styles
    1413```
    15 
    1614
    1715## Usage
     
    3028console.log(style.bgColor.ansi.hsl(120, 80, 72) + 'Hello world!' + style.bgColor.close);
    3129console.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);
     30console.log(style.color.ansi16m.hex('#abcdef') + 'Hello world!' + style.color.close);
    3331```
    3432
     
    3634
    3735Each style has an `open` and `close` property.
    38 
    3936
    4037## Styles
     
    6158- `cyan`
    6259- `white`
    63 - `gray` ("bright black")
     60- `blackBright` (alias: `gray`, `grey`)
    6461- `redBright`
    6562- `greenBright`
     
    8077- `bgCyan`
    8178- `bgWhite`
    82 - `bgBlackBright`
     79- `bgBlackBright` (alias: `bgGray`, `bgGrey`)
    8380- `bgRedBright`
    8481- `bgGreenBright`
     
    8885- `bgCyanBright`
    8986- `bgWhiteBright`
    90 
    9187
    9288## Advanced usage
     
    113109```
    114110
    115 
    116111## [256 / 16 million (TrueColor) support](https://gist.github.com/XVilka/8346728)
    117112
    118113`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
     115The 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`
    119125
    120126To use these, call the associated conversion function with the intended output, for example:
     
    131137```
    132138
    133 
    134139## Related
    135140
    136141- [ansi-escapes](https://github.com/sindresorhus/ansi-escapes) - ANSI escape codes for manipulating the terminal
    137 
    138142
    139143## Maintainers
     
    142146- [Josh Junon](https://github.com/qix-)
    143147
     148## For enterprise
    144149
    145 ## License
     150Available as part of the Tidelift Subscription.
    146151
    147 MIT
     152The 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.