colors.js
colors.js copied to clipboard
String extension not working in NodeJs VM
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?