Skip to content

String extension not working in NodeJs VM #343

@keevitaja

Description

@keevitaja

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions