Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add multi-mode styling #4

Closed
Marak opened this Issue · 4 comments

3 participants

@Marak
Owner

We should be able to switch colors into one of three modes:

The first mode will operate as colors.js works now. It will apply ANSI escape codes to the string.

The second will return an object literal describing the object which was sent to it, i.e. 'foo'.yellow returns { string: 'foo', styling: ['yellow'] }

The third mode ( as suggested by @TooTallNate ) will output colored html markup for the browser.

@TooTallNate

I think a mode that outputs HTML <span style="color:yellow;"> tags would be a cool idea too, that way you could use it in the browser too!

@Marak
Owner

Agreed, I bet @ded would like that too!

@ded

:)

@Marak
Owner

Okay, I think I can bang this out relatively soon. This is part of a chain of tickets:

https://github.com/indexzero/winston/issues/5
nodejitsu/jitsu#2

Gotta love having a stack built from all your own shite!

@Marak Marak closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.