JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12
  • Score
    100M100P100Q64719F
  • License MIT

A simple terminal color picker for Node.js

Package Exports

  • node-color-picker

Readme

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);