Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work for me #15

Open
scott-cornwell opened this issue Mar 30, 2018 · 2 comments
Open

Doesn't work for me #15

scott-cornwell opened this issue Mar 30, 2018 · 2 comments

Comments

@scott-cornwell
Copy link

I'm on node 8.9 and using iterm2 on OSX. I can print colors with the chalk package fine.

If I do this:

const testObject = {
  someData: 'testing'
};
console.log(jsome.getColoredString(testObject));

I get this in the console:

      [ '%c{\n  %ctest%c: %c"%cblah%c"\n%c}',
        'color: #FFFF00',
        'color: #00FF00',
        'color: #FFFF00',
        'color: #FFFF00',
        'color: #FF00FF',
        'color: #FFFF00',
        'color: #FFFF00' ]

Tried just jsome(testObject) too and it gives the same.

@grantcarthew
Copy link

grantcarthew commented Jul 5, 2018

@scott-cornwell I just found this issue also. I believe it only occurs when running under jest. That's what it looks like for me anyway.

@robross0606
Copy link

robross0606 commented Aug 15, 2024

I'm not seeing quite the same problem as in this example, but it simply doesn't appear to colorize anything. I am already using chalk for many things which works fine. However, running a JS object through jsome() or jsome.getColoredString() formats the output without any color. I can turn on visible indents and other things, but all the content comes out without any ansi color codes no matter what.

I'm on node v18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants