ora:优雅的终端微调器

时间:2021-02-21 19:48:58
【文件属性】:
文件名称:ora:优雅的终端微调器
文件大小:398KB
文件格式:ZIP
更新时间:2021-02-21 19:48:58
JavaScript 奥拉 优雅的终端旋转器 安装 $ npm install ora 用法 const ora = require ( 'ora' ) ; const spinner = ora ( 'Loading unicorns' ) . start ( ) ; setTimeout ( ( ) => { spinner . color = 'yellow' ; spinner . text = 'Loading rainbows' ; } , 1000 ) ; API ora(文字) ora(选项) 如果提供了字符串,则将其视为的快捷方式。 选项 类型: object 文本 类型: string 要在微调器之后显示的文本。 prefixText 类型: string | () => string string | () => string 文本或返回文本以在微调器之前显示的函数。 如果设置
【文件预览】:
ora-main
----index.test-d.ts(1KB)
----.gitattributes(19B)
----.github()
--------funding.yml(113B)
--------workflows()
----example.js(983B)
----screenshot-spinner.gif(5KB)
----test.js(9KB)
----license(1KB)
----screenshot-2.gif(386KB)
----index.d.ts(6KB)
----.npmrc(19B)
----.editorconfig(175B)
----.gitignore(23B)
----index.js(8KB)
----readme.md(6KB)
----screenshot.json(29KB)
----package.json(985B)
----screenshot.svg(15KB)

网友评论