1.0.10 • Published 5 months ago

hui-js-tools v1.0.10

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

介绍

hui-js-tools 是一个多功能的 JavaScript 和 TypeScript 工具库,旨在提供各种常用工具函数和模块,帮助开发者处理日志、日期以及其他常见操作。

结构

hui-js-tools/
├── Logger/
│   └── index.ts
│   └── DateUtils.test.ts(调试)
├── Date/
│   └── index.ts
├── docs/
│   └── ......
└── package.json
└── README.md 
└── pushAndPublish.bat(自动化发布脚本)

安装

npm install hui-js-tool

使用

更多信息请查看 详情文档

Logger

彩色日志打印,级别如下:info、primary、 warn、 error

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 文件

npx jest DateUtils.test.ts

发布版本

升级版本

npm version patch

发布

npm publish

Author

cwh6

License

Copyright © 2023, cwh6. Released under the MIT License.

This file was generated by verb-generate-readme, v1.0.1, on December 08, 2023.

1.0.10

5 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago