Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Color your terminal using CSS/hex color codes
Weekly downloads
Readme
Kuler is small and nifty node module that allows you to create terminal based colors using hex color codes, just like you're used to doing in your CSS. We're in a modern world now and terminals support more than 16 colors so we are stupid to not take advantage of this.
The package is released in the public npm registry and can be installed by running:
npm install --save kuler
To color a string simply pass it the string you want to have colored as first argument and the color as hex as second argument:
'use strict';
const kuler = require('kuler');
const str = kuler('foo', '#FF6600');
The color code sequence is automatically terminated at the end of the string so the colors do no bleed to other pieces of text. So doing:
console.log(kuler('red', '#F00'), 'normal');
Will work without any issues.
FAQs
Color your terminal using CSS/hex color codes
The npm package kuler receives a total of 6,321,791 weekly downloads. As such, kuler popularity was classified as popular.
We found that kuler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.