Require Node.js 10
This commit is contained in:
parent
f0f4638a92
commit
61999a4e77
8 changed files with 32 additions and 26 deletions
|
|
@ -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) + ' ');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue