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

how to use brightColors in nodjs? #278

Open
kkm opened this issue Mar 15, 2021 · 5 comments
Open

how to use brightColors in nodjs? #278

kkm opened this issue Mar 15, 2021 · 5 comments

Comments

@kkm
Copy link

kkm commented Mar 15, 2021

console.log("bright color".brightBlue) ==> doesnt work, but how to use this code?

@gumbol
Copy link

gumbol commented Sep 6, 2021

what error do you get?

@kkm
Copy link
Author

kkm commented Oct 6, 2021

it shows in "undefined" only. @gumbol

@gumbol
Copy link

gumbol commented Oct 6, 2021

@kkm i cant replicate the issue. what type of os and terminal are you using? and could you add a screenshot of the error?

@LoranRendel
Copy link

The problem actually is missing TS definition for bright colors in index.d.ts and safe.d.ts

@hootigger
Copy link

hootigger commented Jan 3, 2022

in ts.

import colors = require('colors')
// important. it output `undefine` if not enable .
colors.enable()

// 
console.log(`[*] [${self.$className.bgRed} ${method}]`)

and works for me!

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

4 participants