[github地址:https://github.com/ABCDdouyae...] gradient-string 用于在终端打印出好看的渐变文字 普通用法 console.log(gradient('cyan', 'pink')('Hello world!')); let a = 'so beautiful!' let b = gradient('red', 'green'); console.log(b(a)); let c = gradient(['yellow', 'orange']…
[github地址:https://github.com/ABCDdouyae...] pad 给字符串的左右加padding,也可以用于删减字符串两端 用法:pad(str, length, options)|pad(length, str, options) options: char (string): 指定字符填充 colors (boolean):Ajust to hidden terminal color characters, you may also use require 'p…
github地址:https://github.com/ABCDdouyae... kind-of 判断数据类型用法:kind-of(date)返回:string 数据类型 January undefined null boolean string number function array regexp date arguments error buffer set weakset map weakmap symbol init8array unit8array uint8clampedarr…