@tols/progress-bar

1.0.2 • Public • Published

命令行进度条提示

调用示例可以参考npm包里的examples

// 相关代码
const ProgressBar = require('@tols/progress-bar')
// 创建一个进度条长度为 25 的 ProgressBar 实例
const pb = new ProgressBar('处理进度', '正在处理', 25)
// 更新进度条
// completed是当前完成数,total是需要完成的总数,fileNames是需要被处理的图片地址
pb.render({completed: 50, total: 100, fileNames: ['/test/1.jpg', '/test/2.jpg']})

Package Sidebar

Install

npm i @tols/progress-bar

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

4.09 kB

Total Files

4

Last publish

Collaborators

  • jerry2359