colorspace

WebJar for colorspace

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

colorspace
Last Version

Last Version

1.1.2
Release Date

Release Date

Type

Type

jar
Description

Description

colorspace
WebJar for colorspace
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

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

Download colorspace

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : color jar [3.0,3.1)
org.webjars.npm : text-hex jar [1.0,1.1)

Project Modules

There are no modules declared in this project.

colorspace

Colorspace is a simple module which generates HEX color codes for namespaces. The base color is decided by the first part of the namespace. All other parts of the namespace alters the color tone. This way you can visually see which namespaces belong together and which does not.

Installation

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

npm install --save colorspace

Usage

We assume that you've already required the module using the following code:

'use strict';

var colorspace = require('colorspace');

The returned function accepts 2 arguments:

  1. namespace string, The namespace that needs to have a HEX color generated.
  2. delimiter, string, optional, Delimiter to find the different sections of the namespace. Defaults to :

Example

console.log(colorspace('color')) // #6b4b3a
console.log(colorspace('color:space')) // #796B67

License

MIT

Versions

Version
1.1.2
1.1.1