vue - 认识ora
主要用来实现node.js
命令行环境的loading效果,和显示各种状态的图标等...
1 const ora = require('ora'); 2 3 const spinner = ora('Loading unicorns').start(); 4 5 setTimeout(() => { 6 spinner.color = 'yellow'; 7 spinner.text = 'Loading rainbows'; 8 }, 1000);
主要用来实现node.js
命令行环境的loading效果,和显示各种状态的图标等...
1 const ora = require('ora'); 2 3 const spinner = ora('Loading unicorns').start(); 4 5 setTimeout(() => { 6 spinner.color = 'yellow'; 7 spinner.text = 'Loading rainbows'; 8 }, 1000);