colors.js icon indicating copy to clipboard operation
colors.js copied to clipboard

String extension not working in NodeJs VM

Open keevitaja opened this issue 3 years ago • 0 comments

Hi.

Colors String extensions does not seem to work when used inside VM context.

const colors = require('colors')

colors.enable()

console.log('this is undefined'.red) // undefined
console.log(colors.red('this is red')) // red text

Is there a way to fix this?

keevitaja avatar Aug 11 '22 06:08 keevitaja