# kolorist **Repository Path**: mirrors_developit/kolorist ## Basic Information - **Project Name**: kolorist - **Description**: A tiny utility to colorize stdin/stdout - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-20 - **Last Updated**: 2026-08-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # kolorist Tiny library to put colors into stdin/stdout :tada: ![Screenshot of terminal colors](screenshot.png) ## 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 colors globally via the following environment variables: - `NODE_DISABLE_COLORS` - `TERM=dumb` - `FORCE_COLOR=0` 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).