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