Appearance
关于 nodejs与命令行的交互
colors
colors 是类似于 chalk的终端字符美化工具
var colors = require('colors/safe');
console.log(colors.green('hello')); // outputs green text
console.log(colors.red.underline('i like cake and pies')) // outputs red underlined text
console.log(colors.inverse('inverse the color')); // inverses the color
console.log(colors.rainbow('OMG Rainbows!')); // rainbow
console.log(colors.trap('Run the trap')); // Drops the bassInquirer.js
通用交互式命令行用户界面的集合
const { confirm } = require('@inquirer/prompts');