npm.io
0.0.2 • Published 7 years ago

mkdcolor

Licence
MIT
Version
0.0.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0

mkdcolor

What it does

Like the normal colors module but just one string.

Anything after a block will be that blocks color, try the example so see what i mean.

Simple example of how the blocks work

[#-g]This text will be green but [#-r]this will be red and [#r]now its reset to the default.

Basic Usage

var mkdc = require("mkdcolor");

console.log( mkdc.read("[#-w]Something [#-r]red with a bit of [#-g]green and a little tiny bit of [#-m]magenta and [#-c]cyan.") );

the above will produce image

Sequence Blocks

[#r] -- Resets
[#h] -- Hides
[#-bl] -- Black
[#-r] -- Red
[#-g] -- Green
[#-y] -- Yellow
[#-b] -- Blue
[#-m] -- Magenta
[#-c] -- Cyan
[#-w] -- White
[#-gr] -- Grey

Keywords