preact
This commit is contained in:
parent
6acf267d48
commit
b7614eb3f8
4794 changed files with 1280808 additions and 1546 deletions
53
frontend/node_modules/kolorist/README.md
generated
vendored
Normal file
53
frontend/node_modules/kolorist/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
# kolorist
|
||||
|
||||
Tiny library to put colors into stdin/stdout :tada:
|
||||
|
||||

|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
npm install --save-dev kolorist
|
||||
```
|
||||
|
||||
```js
|
||||
import { red, cyan } from 'kolorist';
|
||||
|
||||
console.log(red(`Error: something failed in ${cyan('my-file.js')}.`));
|
||||
```
|
||||
|
||||
You can also disable or enable colors globally via the following environment variables:
|
||||
|
||||
- disable:
|
||||
- `NODE_DISABLE_COLORS`
|
||||
- `NO_COLOR`
|
||||
- `TERM=dumb`
|
||||
- `FORCE_COLOR=0`
|
||||
|
||||
- enable:
|
||||
- `FORCE_COLOR=1`
|
||||
- `FORCE_COLOR=2`
|
||||
- `FORCE_COLOR=3`
|
||||
|
||||
On top of that you can disable colors right from node:
|
||||
|
||||
```js
|
||||
import { options, red } from 'kolorist';
|
||||
|
||||
options.enabled = false;
|
||||
console.log(red('foo'));
|
||||
// Logs a string without colors
|
||||
```
|
||||
|
||||
You can also strip colors from a string:
|
||||
|
||||
```js
|
||||
import { red, stripColors } from 'kolorist';
|
||||
|
||||
console.log(stripColors(red('foo')));
|
||||
// Logs 'foo'
|
||||
```
|
||||
|
||||
### License
|
||||
|
||||
`MIT`, see [the license file](./LICENSE).
|
||||
Loading…
Add table
Add a link
Reference in a new issue