colors.js
colors.js copied to clipboard
how to use brightColors in nodjs?
console.log("bright color".brightBlue) ==> doesnt work, but how to use this code?
what error do you get?
it shows in "undefined" only. @gumbol
@kkm i cant replicate the issue. what type of os and terminal are you using? and could you add a screenshot of the error?
The problem actually is missing TS definition for bright colors in index.d.ts
and safe.d.ts
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!