🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@kabeep/palette-cli

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kabeep/palette-cli

A Node.js Library to make your terminal input colorful.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

palette-cli

A Node.js Library to make your terminal input colorful.

NodeJS Install Size NPM code style License

English | 简体中文

Help Info

📦 Installation

npm install --global @kabeep/palette-cli
yarn add --global @kabeep/palette-cli
pnpm add --global @kabeep/palette-cli

⚙️ Usage

palette -h
palette <command> [options]

Commands:
  palette paint <string> [styles..]  Styling of terminal string    [default] [aliases: color, style]
  palette swatch [count|rgb..]       Display color swatch & chips              [aliases: card, chip]
  palette tone                       256-color lookup tables                 [aliases: table, chart]

Positionals:
  string  Text to be styled                                                                 [string]
  styles  Keywords for color and style                                                      [string]

Options:
  -c, --clipboard  Write to the clipboard                                 [boolean] [default: false]
  -h, --help       Show help                                                               [boolean]
  -v, --version    Show version number                                                     [boolean]

Examples:
  palette string red bgWhite bold   Using the style keyword
  palette string ff0000, bg0,255,0  Using Hex and RGB
  palette string '#ff0000' 00ff00   The latter style is weighted higher
  echo string | palette red         Get string from stdin
  palette string -c red             Copies styled string to the clipboard
Help Info
palette tone -h
palette tone

256-color lookup tables

Options:
  -s, --show-number  Shows 256-colored numbering          [boolean] [default: false]
  -h, --help         Show help                                             [boolean]
  -v, --version      Show version number                                   [boolean]

Examples:
  palette tone                Show color blocks only
  palette tone --show-number  Show color blocks with color numbering
Help Info
palette swatch -h
palette swatch [count|rgb..]

Display color swatch & chips

Positionals:
  count  Number of random color samples                       [number] [default: 1]
  rgb    Specifies the RGB value of the card.                [number] [default: []]

Options:
  -h, --help     Show help                                                [boolean]
  -v, --version  Show version number                                      [boolean]

Examples:
  palette swatch              Displays a random color swatches
  palette swatch 8            Displays 8 random colored chips
  palette swatch 255 255 255  Show the rgb(255, 255, 255) swatch
  • palette - 🎨 The fastest Node.js library to set terminal text colours & styles with hex, rgb and tree-shaking.

🤝 Contribution

Contributions via Pull Requests or Issues are welcome.

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.

Keywords

color

FAQs

Package last updated on 23 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts