1.1.0 • Published 11 months ago
node-color-picker v1.1.0
node-color-picker

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 :heart: 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.

Installation
npm i node-color-pickerUsage
// * index.js
import { colorPicker } from 'node-color-picker';
const app = async () => {
const color = await colorPicker();
console.log(color);
};
app();Then run :
node index.jsOptions
| Type | Default | Description | |
|---|---|---|---|
| hint | boolean | True | Whether to show the hint or not |
colorPicker(options);