kuler

WebJar for kuler

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

kuler
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

kuler
WebJar for kuler
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/3rd-Eden/kuler

Download kuler

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/kuler/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>kuler</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/kuler/
implementation 'org.webjars.npm:kuler:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/kuler/
implementation ("org.webjars.npm:kuler:1.0.1")
'org.webjars.npm:kuler:jar:1.0.1'
<dependency org="org.webjars.npm" name="kuler" rev="1.0.1">
  <artifact name="kuler" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='kuler', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "kuler" % "1.0.1"
[org.webjars.npm/kuler "1.0.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : colornames jar [1.1.1,2)

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.0.1
0.0.0