优雅的终端旋转器-Node.js开发

时间:2021-05-27 09:19:58
【文件属性】:
文件名称:优雅的终端旋转器-Node.js开发
文件大小:398KB
文件格式:ZIP
更新时间:2021-05-27 09:19:58
Node.js Command-line utilities ora优雅的终端微调器Install $ npm install --save ora用法const ora = require('ora'); const spinner = ora('Loading unicorns')。start(); setTimeout(()=> {spinner.color ='大喊ora优雅的终端Spinner Install $ npm install ora用法const ora = require('ora'); const spinner = ora('Loading unicorns')。start(); setTimeout( ()=> {spinner.color ='yellow'; spinner.text ='Loading rainbows';},1000); API ora(text)ora(options)如果提供了字符串,则将其视为options的快捷方式.text。options类型:对象文本类型:字符串要在微调器之后显示的文本prefixText类型:字符串要在微调器之前显示的文本N
【文件预览】:
ora-main
----.gitignore(23B)
----package.json(1021B)
----.npmrc(19B)
----screenshot.svg(15KB)
----screenshot.json(29KB)
----index.js(8KB)
----test.js(9KB)
----.github()
--------workflows()
--------funding.yml(113B)
----screenshot-2.gif(386KB)
----screenshot-spinner.gif(5KB)
----license(1KB)
----example.js(983B)
----readme.md(6KB)
----index.test-d.ts(1KB)
----.gitattributes(19B)
----.editorconfig(175B)
----index.d.ts(6KB)

网友评论