Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattythedev01/justcolors
The best simple & lightweight terminal color package!
https://github.com/mattythedev01/justcolors
chalk colors discordbot discordcolors discordjs npm terminalcolors
Last synced: 17 days ago
JSON representation
The best simple & lightweight terminal color package!
- Host: GitHub
- URL: https://github.com/mattythedev01/justcolors
- Owner: mattythedev01
- Created: 2024-10-15T02:26:19.000Z (24 days ago)
- Default Branch: main
- Last Pushed: 2024-10-18T03:30:20.000Z (21 days ago)
- Last Synced: 2024-10-19T10:17:53.768Z (20 days ago)
- Topics: chalk, colors, discordbot, discordcolors, discordjs, npm, terminalcolors
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@mattythedev01/justcolors
- Size: 27.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# @mattythedev01/justcolors Documentation
## Overview
"@mattythedev01/justcolors", is a simple and lightweight color package to log stuff beautifully.
## Features
- Wide range of color options including regular, bright, and pastel colors
- Background color support
- Text styling options (bold, italic, underline, etc.)
- Special effects like rainbow and gradient
- Semantic color functions for success, error, warning, etc.
- Easy-to-use API with simple function calls
- Supports chaining of colors and styles
- Compatible with Node.js environments
- Lightweight and efficient
- No external dependencies## Installation
`npm install @mattythedev01/justcolors`
## Example Usage
```js
// Example usage of justcolorsconst justColors = require("@mattythedev01/justcolors");
// Example usage
console.log(justColors.red("This text is red!"));
console.log(justColors.bgGreen("This text has a green background!"));
console.log(justColors.success("Operation was successful!"));
```### Wondering how to see every color and effects if it doesn't pop up?
```js
const justColors = require("@mattythedev01/justcolors");// To show every regular color
justColors.showAllColors();
// To show additional colors
justColors.showAdditionalColors();
// To show effects
justColors.showEffects();
// To show emojiDecor
justColors.showEmojiDecor();
// To show gradients
justColors.showGradients();
// To show new effects
justColors.showNewEffects();
// To show pastel colors
justColors.showPastelColors();
// To show semantic colors
justColors.showSemanticColors();
// To show other colors
justColors.showOtherColors();
// to show styles
justColors.showStyles();
```Write any one of these lines down in your file, and run the file. Once ran, it'll show you whatever in your terminal.