node-color-picker
TypeScript icon, indicating that this package has built-in type declarations

2.3.0 • Public • Published

node-color-picker NPM version NPM monthly downloads NPM total downloads

A simple terminal color picker for Node.js.

Please consider following this project's author, Sina Bayandorian, and consider starring the project to show your ❤️ and support.

If you're building an interactive CLI with Ink, be sure to check out ink-color-picker for a powerful and user-friendly Ink component.

Demo GIF

Installation

npm i node-color-picker

Usage

// * index.js

import { colorPicker } from 'node-color-picker';

const app = async () => {
  const color = await colorPicker();
  console.log(color);
};

app();

Then run :

node index.js

Options

Type Default Description
hint boolean True Whether to show the hint or not

colorPicker(options);

/node-color-picker/

    Package Sidebar

    Install

    npm i node-color-picker

    Weekly Downloads

    14

    Version

    2.3.0

    License

    MIT

    Unpacked Size

    49.7 kB

    Total Files

    7

    Last publish

    Collaborators

    • sina_byn