如何在 Chalk for Node JS 中增加字体大小?

How can I increase font size in Chalk for Node JS?

如何在 Chalk for Node JS 中增加字体大小?我想用我的代码来做到这一点。这显然是英格兰国旗,但我想在下面添加一些文字,说明它要回家了。不知道看了很多 git 和论坛,但找不到任何已经问过的东西。

const chalk = new require('chalk').constructor({ enabled: true, level: 3 });

console.log(
        chalk.white.bgWhite
    ('...........................') +
      chalk.red.bgRed('2222222') +
        chalk.white.bgWhite('...........................')
);

console.log(
        chalk.white.bgWhite
    ('...........................') +
      chalk.red.bgRed('2222222') +
        chalk.white.bgWhite('...........................')
);

console.log(
        chalk.white.bgWhite
    ('...........................') +
      chalk.red.bgRed('2222222') +
        chalk.white.bgWhite('...........................')
);
console.log(
        chalk.white.bgWhite
    ('...........................') +
      chalk.red.bgRed('2222222') +
        chalk.white.bgWhite('...........................')
);
console.log(
        chalk.white.bgWhite
    ('...........................') +
      chalk.red.bgRed('2222222') +
        chalk.white.bgWhite('...........................')
);
console.log(
        chalk.white.bgWhite
    ('...........................') +
      chalk.red.bgRed('2222222') +
        chalk.white.bgWhite('...........................')
);
console.log(
        chalk.red.bgRed
    ('...........................') +
      chalk.red.bgRed('2222222') +
        chalk.red.bgRed('...........................')
);
console.log(
        chalk.red.bgRed
    ('...........................') +
      chalk.red.bgRed('2222222') +
        chalk.red.bgRed('...........................')
);
console.log(
        chalk.red.bgRed
    ('...........................') +
      chalk.red.bgRed('2222222') +
        chalk.red.bgRed('...........................')
);
console.log(
        chalk.white.bgWhite
    ('...........................') +
      chalk.red.bgRed('2222222') +
        chalk.white.bgWhite('...........................')
);
console.log(
        chalk.white.bgWhite
    ('...........................') +
      chalk.red.bgRed('2222222') +
        chalk.white.bgWhite('...........................')
);
console.log(
        chalk.white.bgWhite
    ('...........................') +
      chalk.red.bgRed('2222222') +
        chalk.white.bgWhite('...........................')
);
console.log(
        chalk.white.bgWhite
    ('...........................') +
      chalk.red.bgRed('2222222') +
        chalk.white.bgWhite('...........................')
);
console.log(
        chalk.white.bgWhite
    ('...........................') +
      chalk.red.bgRed('2222222') +
        chalk.white.bgWhite('...........................')
);
console.log(
        chalk.white.bgWhite
    ('...........................') +
      chalk.red.bgRed('2222222') +
        chalk.white.bgWhite('...........................')
);

你不能。

chalk 使用 ANSI escape codes 工作并且没有(便携式)代码来更改字体大小。