4 Star 41 Fork 6

fisher / logsets

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

为开发nodejs命令行程序提供丰富的表现输出样式,支持以下特性:

  • 支持按不同数据类型以不同的颜色显示,并且可以配置显示样式
  • 支持按DEBUGINFOWARN ERROR FATAL五个级别输出日志
  • 支持输出带颜色的模板字符串
  • 支持自动格式化显示{}[]类型
  • 支持强大的表格输出
  • 支持输出任务列表、进度条、横幅和树等扩展
  • 正确处理中文与英文混排时的对齐问题
  • 提供任务执行列表显示

开源推荐:

安装

npm install logsets
yarn add logsets
pnpm add logsets

使用文档

访问官方文档

输出效果

  • 模板字符串输出

image

  • 按数据类型输出

image

  • 格式化输出对象

image image

  • 输出日志级别

image

  • 表格输出

image

image

image

  • 进度条

  • 横幅

  • 任务列表

  • 列表

MIT License Copyright (c) 2022 fisher Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

编写具有丰富表现力的nodejs命令行终端程序的库 展开 收起
JavaScript 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/zhangfisher/logsets.git
git@gitee.com:zhangfisher/logsets.git
zhangfisher
logsets
logsets
master

搜索帮助