本文整理汇总了TypeScript中chalk.blue类的典型用法代码示例。如果您正苦于以下问题:TypeScript blue类的具体用法?TypeScript blue怎么用?TypeScript blue使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了blue类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1:
program.on('--help', () => {
console.log(
`
Supported Apps:
ImageAlpha: ${chalk.blue.underline('https://pngmini.com')}
ImageOptim: ${chalk.blue.underline('https://imageoptim.com')}
JPEGmini Lite: ${chalk.blue.underline(
'https://itunes.apple.com/us/app/jpegmini-lite/id525742250'
)}
JPEGmini Pro: ${chalk.blue.underline(
'https://itunes.apple.com/us/app/jpegmini-pro/id887163276'
)}
JPEGmini: ${chalk.blue.underline('https://itunes.apple.com/us/app/jpegmini/id498944723')}
Examples:
${chalk.dim('Run ImageOptim.app over every image in current directory')}
imageoptim
${chalk.dim('Run ImageAlpha.app and ImageOptim.app over every PNG in current directory')}
imageoptim --imagealpha '**/*.png'
${chalk.dim('Run JPEGmini.app and ImageOptim.app over every JPG in current directory')}
imageoptim --jpegmini '**/*.jpg' '**/*.jpeg'
${chalk.dim('Run JPEGmini.app over every JPG in current directory')}
imageoptim --jpegmini --no-imageoptim '**/*.jpg' '**/*.jpeg'
${chalk.dim('Run ImageOptim.app over every image in a specific directory')}
imageoptim '~/Desktop'
`.trimRight()
);
});
开发者ID:JamieMason,项目名称:ImageOptim-CLI,代码行数:34,代码来源:imageoptim.ts
示例2: logCodeSandbox
export function logCodeSandbox() {
console.log(
` ${chalk.blue.bold('Code')}${chalk.yellow.bold('Sandbox')} ${chalk.bold(
'CLI',
)}`,
);
console.log(' The official CLI for uploading projects to CodeSandbox');
}
开发者ID:ghoullier,项目名称:codesandbox-cli,代码行数:8,代码来源:log.ts
示例3: debugLog
this._mockTransport.server.on("data", (data: Buffer) => {
let reply = this._replies[this._counter];
this._counter++;
if (reply) {
if (_.isFunction(reply)) {
reply = reply.call(this);
// console.log(" interpreting reply as a function" + reply);
if (!reply) {
return;
}
}
debugLog("\nFAKE SERVER RECEIVED");
debugLog(hexDump(data));
let replies = [];
if (reply instanceof Buffer) {
replies.push(reply);
} else {
replies = reply;
}
assert(replies.length >= 1, " expecting at least one reply " + JSON.stringify(reply));
replies.forEach((reply1: any) => {
debugLog("\nFAKE SERVER SEND");
debugLog(chalk.red(hexDump(reply1)));
this._mockTransport.server.write(reply1);
});
} else {
const msg = " MockServerTransport has no more packets to send to client to" +
" emulate server responses.... ";
console.log(chalk.red.bold(msg));
console.log(chalk.blue.bold(hexDump(data)));
display_trace_from_this_projet_only();
analyseExtensionObject(data, 0, 0, {});
this.emit("done");
}
});
开发者ID:node-opcua,项目名称:node-opcua,代码行数:42,代码来源:mock_transport.ts
示例4: info
public info(message: string): void { // それ以外
this.log(chalk.blue.bold('INFO'), message);
}
开发者ID:ha-dai,项目名称:Misskey,代码行数:3,代码来源:logger.ts
示例5: succ
public succ(message: string): void { // 何かに成功した状況で使う
this.log(chalk.blue.bold('INFO'), chalk.green.bold(message));
}
开发者ID:ha-dai,项目名称:Misskey,代码行数:3,代码来源:logger.ts
示例6: logQuery
public logQuery(text: string, values?: any[]): void {
console.log(' ', chalk.blue.bold(text), values);
}
开发者ID:croquiscom,项目名称:cormo,代码行数:3,代码来源:ColorConsoleLogger.ts
注:本文中的chalk.blue类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论