How to use the reset function from chalk
Find comprehensive JavaScript chalk.reset code examples handpicked from public code repositorys.
GitHub: Keyteq/frontend-packages
21 22 23 24 25 26 27 28 29 30
); babelOptions.babelrc = false; const SRC_DIR = 'src'; const JS_FILES_PATTERN = '**/*.js*'; const IGNORE_PATTERN = '**/__tests__/**'; const OK = chalk.reset.inverse.bold.green(' DONE '); const adjustToTerminalWidth = str => { const columns = process.stdout.columns || 80; const width = columns - stringLength(OK) + 1;
5
1
7
130 131 132 133 134 135 136 137 138 139
chalk.dim(`(${transformedFileCount}/${totalFileCount})`) : ''; return ( bundleTypeColor.inverse.bold(` ${bundleType.toUpperCase()} `) + chalk.reset.dim(` ${path.dirname(localPath)}/`) + chalk.bold(path.basename(localPath)) + ' ' + progress + '\n'
623
0
98
16 17 18 19 20 21 22 23 24 25 26 27
const format = (label, msg) => { return msg.split('\n').map((line, i) => { return i === 0 ? `${label} ${line}` : padStart(line, chalk.reset(label).length) }).join('\n') } const chalkTag = msg => chalk.bgBlackBright.white.dim(` ${msg} `)
0
0
0
+ 3 other calls in file