Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

kuler

Package Overview
Dependencies
0
Maintainers
2
Versions
4
Issues
File Explorer

Advanced tools

kuler

Color your terminal using CSS/hex color codes

    2.0.0latest

Version published
Maintainers
2
Weekly downloads
5,554,366
decreased by-23.35%

Weekly downloads

Readme

Source

kuler

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.

Installation

The package is released in the public npm registry and can be installed by running:

npm install --save kuler

Usage

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.

License

MIT

Keywords

FAQs

What is kuler?

Color your terminal using CSS/hex color codes

Is kuler popular?

The npm package kuler receives a total of 4,665,041 weekly downloads. As such, kuler popularity was classified as popular.

Is kuler well maintained?

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.

Last updated on 06 Jun 2019

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc