How to use the magentaBright function from chalk
Find comprehensive JavaScript chalk.magentaBright code examples handpicked from public code repositorys.
GitHub: ZTO-Express/zms
61 62 63 64 65 66 67 68 69 70
const mockRoutes = registerRoutes(app) mockRoutesLength = mockRoutes.mockRoutesLength mockStartIndex = mockRoutes.mockStartIndex console.log( chalk.magentaBright( `\n > Mock Server hot success! changed ${path}` ) ) } catch (error) {
90
270
21
24 25 26 27 28 29 30 31 32 33
function configure() { /* The below uses figlet and chalk to print ChaosQoala in the terminal when the user starts ChaosQoala */ console.log( magentaBright( textSync('ChaosQoaLa', { horizontalLayout: 'full' }), ), ); prompt(questions)
4
154
4
11 12 13 14 15 16 17 18 19 20
.option('-r, --reverse <path>', 'convert excel to json') .option('-m, --merge <path>', 'incremental merge') .on('--help', () => { console.log('') console.log( chalk.magentaBright(`Support Three mode: 1. convert language json file to excel file, Example call: ${chalk.yellow('json2excel <../zh-cn.json> <../en.json> [helloworld.xlsx]')} 2. convert excel file to language json file, Example call: ${chalk.yellow('json2excel -r <../helloworld.xlsx> [helloworld]')}
1
1
1
122 123 124 125 126 127 128 129 130
const template = ` ${col}`; const diff = template.length - stringLength(template); return template.padEnd(columnMaxSizes[i] + diff, ' '); }).join(chalk.magentaBright('|')); console.log(chalk.magentaBright(`|`) + rowString + chalk.magentaBright('|')); }) }
0
4
2
16 17 18 19 20 21 22 23 24 25
break; case 'PUT': coloredRequest = chalk.yellowBright(request); break; case 'PATCH': coloredRequest = chalk.magentaBright(request); break; case 'DELETE': coloredRequest = chalk.whiteBright(request); break;
0
1
1
GitHub: vegetabill/crudtastic
19 20 21 22 23 24 25 26 27 28
const RestfulResource = require('./restful-resource'); const ResourceRouter = require('./resource-router'); const logger = require('./logger'); const isProd = process.env.NODE_ENV === 'production'; const logMsgTag = chalk.magentaBright(`[crudtastic v${version}]`); function tagMsg(msg) { return `${logMsgTag} ${msg}`; }
0
0
2