https://github.com/danielkov/discolor
🎨 Discolor - Colorize Terminal Output
https://github.com/danielkov/discolor
color nodejs terminal
Last synced: about 2 months ago
JSON representation
🎨 Discolor - Colorize Terminal Output
- Host: GitHub
- URL: https://github.com/danielkov/discolor
- Owner: danielkov
- License: mit
- Created: 2020-02-06T20:26:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T07:46:20.000Z (over 3 years ago)
- Last Synced: 2025-09-10T05:25:34.033Z (9 months ago)
- Topics: color, nodejs, terminal
- Language: TypeScript
- Homepage:
- Size: 755 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 🎨 Discolor - Colorize Terminal Output
This is a very minimal library - 29 lines to easily add 9 colors to your terminal output.
Here's how to use it:
```ts
import { green } from 'discolor';
console.log(green('I will be green'));
```
Possible colors you can use:
1. black
2. red
3. green
4. yellow
5. blue
6. magenta
7. cyan
8. white
9. gray