0

I have a question that may seem silly but I would like to change the color of the link returned by the console.log() command.

let interfaces = require('os').networkInterfaces();
for (let k in interfaces) {
    for (let k2 in interfaces[k]) {
        let address = interfaces[k][k2];
        if (address.family === 'IPv4' && address.address !== '127.0.0.1' && !address.internal){
            console.log(`Go on : http://${address.address}:2000 to start the vending machine`);
        }
    }
}

The return of the console is therefore :
Go on : http://127.0.0.1:2000 to start the vending machine

So I would like to change the color of the bold part. Thank you in advance for your help.

LikAnda
  • 9
  • 1

0 Answers0