# hui-js-tools **Repository Path**: CWH6/hui-js-tools ## Basic Information - **Project Name**: hui-js-tools - **Description**: hui-js-tools 是一个多功能的 JavaScript 和 TypeScript 工具库,旨在提供各种常用工具函数和模块,帮助开发者处理日志、日期以及其他常见操作。 - **Primary Language**: TypeScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-12-06 - **Last Updated**: 2023-12-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: JavaScript, TypeScript ## README

## 介绍 > **hui-js-tools** 是一个多功能的 JavaScript 和 TypeScript 工具库,旨在提供各种常用工具函数和模块,帮助开发者处理日志、日期以及其他常见操作。 ## 结构 ```sh hui-js-tools/ ├── Logger/ │ └── index.ts │ └── DateUtils.test.ts(调试) ├── Date/ │ └── index.ts ├── docs/ │ └── ...... └── package.json └── README.md └── pushAndPublish.bat(自动化发布脚本) ``` ## 安装 ```sh npm install hui-js-tool ``` ## 使用 > 更多信息请查看 [详情文档](http://cwh6.gitee.io/hui-js-tools/#/) ### Logger >彩色日志打印,级别如下:info、primary、 warn、 error ```sh import Logger from 'hui-js-tools/Logger'; Logger.info("title","content"); Logger.primary("title","contentA","contentB"); Logger.warn("title","contentA","contentB"); Logger.error("title","contentA","contentB"); ``` ## 模块调试 进入对应模块文件, 执行 `xxx.test.ts` 文件
eg:进入 `Date` 模块 , 执行 `DateUtils.test.ts` 文件 ```sh npx jest DateUtils.test.ts ``` ## 发布版本 升级版本 ```sh npm version patch ``` 发布 ```sh npm publish ``` ### Author **cwh6** * [Gitee Profile](https://gitee.com/CWH6) ### License Copyright © 2023, [cwh6](https://gitee.com/CWH6). Released under the [MIT License](LICENSE). _This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v1.0.1, on December 08, 2023._