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.
The module is released in the public npm registry and can be installed by running:
npm install --save colorspace
We assume that you've already required the module using the following code:
'use strict';var colorspace = ;
The returned function accepts 2 arguments:
namespacestring, The namespace that needs to have a HEX color generated.
delimiter, string, optional, Delimiter to find the different sections of the namespace. Defaults to
console // #6b4b3aconsole // #796B67