【文件属性】:
文件名称:ansi-color:反色
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-17 23:08:28
JavaScript
针对CommonJS + Node.js的ANSI颜色代码输出支持
此CommonJS模块提供基本的ANSI颜色代码支持,以使您可以使用前景色和背景色来格式化控制台输出,并提供粗体和下划线支持。
该模块不会修改任何内置对象原型,因此可以安全地与其他模块一起使用。
在node.js上测试。
基本用法:
// Load the module
var color = require("ansi-color").set;
// Print the word "Error" to stdout in red
console.log(color("Error", "red"));
// Print the word "Error" in red and underlined
console.log(color("Error", "red+underline"));
// Print the w
【文件预览】:
ansi-color-master
----lib()
--------ansi-color.js(1KB)
----LICENSE(1KB)
----README.md(1KB)
----package.json(452B)