Require Node.js 10

This commit is contained in:
Sindre Sorhus 2020-04-02 15:56:21 +08:00
parent f0f4638a92
commit 61999a4e77
8 changed files with 32 additions and 26 deletions

View file

@ -4,15 +4,15 @@ const chalk = require('..');
// Generates screenshot
for (const key of Object.keys(styles)) {
let ret = key;
let returnValue = key;
if (key === 'reset' || key === 'hidden' || key === 'grey') {
continue;
}
if (/^bg[^B]/.test(key)) {
ret = chalk.black(ret);
returnValue = chalk.black(returnValue);
}
process.stdout.write(chalk[key](ret) + ' ');
process.stdout.write(chalk[key](returnValue) + ' ');
}