weihuo-util 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -0
- package/dist/cjs/constant/city.js +5711 -0
- package/dist/cjs/index.js +61 -0
- package/dist/cjs/modules/author.js +167 -0
- package/dist/cjs/modules/cityOptions.js +100 -0
- package/dist/cjs/modules/color.js +88 -0
- package/dist/cjs/modules/demo.js +10 -0
- package/dist/cjs/modules/file.js +109 -0
- package/dist/cjs/modules/number.js +137 -0
- package/dist/cjs/modules/other.js +286 -0
- package/dist/cjs/modules/validation.js +232 -0
- package/dist/esm/constant/city.js +5708 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/modules/author.js +160 -0
- package/dist/esm/modules/cityOptions.js +95 -0
- package/dist/esm/modules/color.js +82 -0
- package/dist/esm/modules/demo.js +8 -0
- package/dist/esm/modules/file.js +102 -0
- package/dist/esm/modules/number.js +131 -0
- package/dist/esm/modules/other.js +257 -0
- package/dist/esm/modules/validation.js +219 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/modules/author.d.ts +95 -0
- package/dist/types/modules/cityOptions.d.ts +30 -0
- package/dist/types/modules/color.d.ts +34 -0
- package/dist/types/modules/demo.d.ts +6 -0
- package/dist/types/modules/file.d.ts +40 -0
- package/dist/types/modules/number.d.ts +30 -0
- package/dist/types/modules/other.d.ts +58 -0
- package/dist/types/modules/validation.d.ts +14 -0
- package/dist/types/tsdoc-metadata.json +11 -0
- package/dist/types/types/index.d.ts +23 -0
- package/dist/umd/index.js +78 -0
- package/package.json +98 -0
package/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# weihuo-util
|
|
2
|
+
|
|
3
|
+
weihuo 通用工具函数库。
|
|
4
|
+
|
|
5
|
+
npm:https://www.npmjs.com/package/weihuo-util
|
|
6
|
+
|
|
7
|
+
## 安装
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm i weihuo-util
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## 使用
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
import { num_expand, val_phone, timejs } from "weihuo-util";
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
const { num_expand, val_phone } = require("weihuo-util");
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
业务项目请通过 npm 安装引用,不要用本地 path / link 联调。
|
|
24
|
+
|
|
25
|
+
## 开发(仅本仓库)
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npm install
|
|
29
|
+
npm run build
|
|
30
|
+
npm run test
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
发布新版本:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npm version patch # 或 minor / major
|
|
37
|
+
npm publish
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## License
|
|
41
|
+
|
|
42
|
+
UNLICENSED — 保留所有权利。
|