npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@kabeep/palette-cli

v0.1.0

Published

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

Readme

一个 Node.js 库使你的终端输入变得丰富多彩。

NodeJS Install Size NPM code style License

English | 简体中文

📦 安装

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

⚙️ 使用

palette -h
palette <命令> [选项]

命令:
  palette paint <string> [styles..]  设置终端字符串样式        [默认值] [aliases: color, style]
  palette swatch [count|rgb..]       显示色样和色片                      [aliases: card, chip]
  palette tone                       256 色查询表                      [aliases: table, chart]

位置:
  string  要设置样式的文本                                                             [字符串]
  styles  颜色和样式的关键词                                                           [字符串]

选项:
  -c, --clipboard  写入剪贴板                                            [布尔] [默认值: false]
  -h, --help       显示帮助信息                                                         [布尔]
  -v, --version    显示版本号                                                           [布尔]

示例:
  palette string red bgWhite bold   使用关键字
  palette string ff0000, bg0,255,0  使用 Hex 和 RGB
  palette string '#ff0000' 00ff00   越后面的参数权重更高
  echo string | palette red         从标准输入流中获取文本
  palette string -c red             将样式字符串复制到剪贴板
palette tone -h
palette tone

256 色查询表

选项:
  -s, --show-number  显示 256 色编号                       [布尔] [默认值: false]
  -h, --help         显示帮助信息                                         [布尔]
  -v, --version      显示版本号                                           [布尔]

示例:
  palette tone                仅显示色块
  palette tone --show-number  显示带有颜色编号的色块
palette swatch -h
palette swatch [count|rgb..]

显示色板和色样

Positionals:
  count  随机颜色的色板数量                                   [数字] [默认值: []]
  rgb    指定卡的 RGB 值                                     [数字] [默认值: []]

Options:
  -h, --help     显示帮助信息                                             [布尔]
  -v, --version  显示版本号                                               [布尔]

Examples:
  palette swatch              显示随机颜色的色卡
  palette swatch 8            显示 8 个随机颜色的色板
  palette swatch 255 255 255  显示 rgb(255, 255, 255) 的色卡

🔗 关联库

  • palette - 🎨 最快的 Node.js 库, 支持 Hex、RGB 和 tree-shaking 设置终端文本的颜色和样式。

🤝 贡献

欢迎通过 Pull Requests 或 Issues 来贡献你的想法和代码。

📄 许可

本项目采用 MIT 许可证。详情请见 LICENSE 文件。