| | | |
CLI进度
命令行/终端应用程序易于使用的进度条
安装
$ yarn add cli-progress
$ npm install cli-progress --save
产品特点
简单,坚固且易于使用
完全可定制的输出格式(可用占位符)
单进度条模式
多进度条模式
自定义栏字符
FPS限制器
根据经过时间估算ETA
自定义令牌以在栏中显示其他数据(有效载荷)
TTY和NOTTY模式
无需回调-设计为纯外部控件的UI小部件
在异步和同步任务中工作
预设/主题支持
自定义栏格式器(通过回调)
用法
可以使用多个示例,例如只需尝试$ node example.js
const cliProgress = require ( 'cli-progress' ) ;
// create a new progress bar instance and use shades_classic theme
const bar1 = new cliProgress . SingleBar ( { } , cliProgress . Presets . shades_classic
评论0
最新资源