hex-to-ansi is a hex to ansi converter.
Get hex-to-ansi up and running quickly!
-
Run:
npm install hex-to-ansi
-
Use:
ESM:
CommonJS:
import { hexToAnsi } from 'hex-to-ansi'; console.log(hexToAnsi('#ff5733'), 'Test Message', '\u001b[0m');
const { hexToAnsi } = require('hex-to-ansi'); console.log(hexToAnsi('#ff5733'), 'Test Message', '\u001b[0m');
We welcome contributions to hex-to-ansi! Whether it's reporting a bug, suggesting an enhancement, or submitting a pull request, your input is valued.
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions, suggestions, or feedback, please contact love1ace.