nodejs colors模块
来源:互联网 发布:tomcat 8.5 java 编辑:程序博客网 时间:2024/06/10 03:42
一、安装
npm install colors
二、用法一
var colors = require('colors');console.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); // rainbowconsole.log('Run the trap'.trap); // Drops the bass
用法二(不改变String的属性)
var colors = require('colors/safe');console.log(colors.green('hello')); // outputs green textconsole.log(colors.red.underline('i like cake and pies')) // outputs red underlined textconsole.log(colors.inverse('inverse the color')); // inverses the colorconsole.log(colors.rainbow('OMG Rainbows!')); // rainbowconsole.log(colors.trap('Run the trap')); // Drops the bass
更多用法
https://github.com/marak/colors.js/
0 0
- nodejs colors模块
- nodejs colors 模块设置控制台文本颜色
- nodejs colors模块 设置控制台log颜色
- NodeJS终端着色colors插件
- Nodejs 模块
- nodejs模块
- Nodejs 模块
- nodejs-模块
- NodeJS-模块
- NodeJS模块
- nodejs 模块
- nodejs模块
- Nodejs 模块
- nodejs 模块与es6模块
- nodejs模块之fs模块
- NodeJS 常用模块推荐
- nodejs event模块
- NodeJS 常用模块推荐
- 动态规划解最长公共子序列问题(LCS)C语言加注释
- eclipse中使用maven---添加本地jar
- unity目录结构--三分天下,一主一副一酱油
- mongodb分配集群 shard key
- HOOK技术的一些简单总结
- nodejs colors模块
- 微软notepad的bug
- 线程 wait()方法----------------------------很重要
- 这样的工作流程让网易在14个月修复2000个bug | 游戏葡萄
- java日期时间处理工具类
- jQuery的选择器中的通配符[id^='code']
- Eclipse自动化代码分析工具
- VisualSVN 破解
- 滚动选择器PickerView