nodejs colors 模块设置控制台文本颜色
来源:互联网 发布:docker nginx jetty 编辑:程序博客网 时间:2024/06/15 19:48
转载自:http://www.bkjia.com/Javascript/720601.html
首先执行:
npm install colors
var colors = require('colors');colors.setTheme({ silly: 'rainbow', input: 'grey', verbose: 'cyan', prompt: 'red', info: 'green', data: 'blue', help: 'cyan', warn: 'yellow', debug: 'magenta', error: 'red'});//bold//italic//underline//inverse//yellow//cyan//white//magenta//green//red//grey//blue//rainbow//zebra//randomconsole.log('hello'.green); // outputs green textconsole.log('i like cake and pies'.underline.red) // outputs red underlined textconsole.log('inverse the color'.inverse); // inverses the colorconsole.log('OMG Rainbows!'.rainbow); // rainbow (ignores spaces)console.log('this is an error'.error);console.log('this is a warning'.warn);console.log('this is a debug'.debug);console.log('this is a help'.help);console.log('this is a silly'.silly);console.log('this is a input'.input);console.log('this is a prompt'.prompt);console.log('this is a data'.data);
0 0
- nodejs colors 模块设置控制台文本颜色
- nodejs colors模块 设置控制台log颜色
- nodejs colors模块
- VC 控制台颜色设置
- VC 控制台颜色设置
- VC 控制台颜色设置
- VC 控制台颜色设置
- VC控制台颜色设置
- mac 设置控制台颜色
- 设置控制台颜色
- Linux控制台颜色设置
- c 设置 控制台 颜色
- 控制台颜色设置
- Linux Console Colors —— Linux 终端控制台字体颜色
- Html设置文本颜色
- TextView设置文本颜色
- QLinedit 文本颜色设置
- Python文本颜色设置
- linux结束进程步骤
- Qt之QDesktopServices
- 初学git:用git bash往github push代码
- HDU 1063 Exponentiation (高精度)
- 初学git:用git bash往github push代码
- nodejs colors 模块设置控制台文本颜色
- 初学git:用git bash往github push代码
- Git 使用规范流程
- [转]uri vs url vs urn
- MySQL服务器最大连接数的合理设置
- 实现友盟推送消息的完全自定义处理
- 初学git:用git bash往github push代码
- Hibernate多对多双向关联(xml配置)
- 初学git:用git bash往github push代码