2016-10-26 12:58:01 +07:00
|
|
|
'use strict';
|
2017-05-21 23:28:38 +07:00
|
|
|
const chalk = require('.');
|
2016-10-26 12:58:01 +07:00
|
|
|
|
2017-05-21 23:28:38 +07:00
|
|
|
// Generates screenshot
|
2016-10-26 12:58:01 +07:00
|
|
|
for (const key of Object.keys(chalk.styles)) {
|
|
|
|
|
let ret = key;
|
|
|
|
|
|
|
|
|
|
if (key === 'reset' || key === 'hidden' || key === 'grey') {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (/^bg[^B]/.test(key)) {
|
|
|
|
|
ret = chalk.black(ret);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
process.stdout.write(chalk[key](ret) + ' ');
|
|
|
|
|
}
|