Use a template string.
Template literals are unsupported for nested calls (see issue #341)
import chalk = require('chalk');log(chalk`CPU: {red ${cpu.totalPercent}%}RAM: {green ${ram.used / ram.total * 100}%}DISK: {rgb(255,131,0) ${disk.used / disk.total * 100}%}`);
import chalk = require('chalk');log(chalk.red.bgBlack`2 + 3 = {bold ${2 + 3}}`)
Rest
Use a template string.
Remarks
Template literals are unsupported for nested calls (see issue #341)
Example
Example