hsu-utils 0.0.16 → 0.0.17
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/LICENSE +1 -1
- package/README.md +32 -32
- package/dist/hsu-utils.js +3 -3
- package/dist/hsu-utils.min.js +1 -1
- package/dist/hsu-utils.min.js.LICENSE.txt +2 -2
- package/es/ArrayIsIncludes/index.js +2 -2
- package/lib/ArrayIsIncludes/index.js +2 -2
- package/package.json +59 -59
package/LICENSE
CHANGED
package/README.md
CHANGED
@@ -1,32 +1,32 @@
|
|
1
|
-
# [Hsu Utils](https://github.com/VitaTsui/hsu-utils#hsu-utils)
|
2
|
-
|
3
|
-
## 前言
|
4
|
-
|
5
|
-
`hsu-utils` 一些前端的工具集
|
6
|
-
|
7
|
-
## 安装
|
8
|
-
|
9
|
-
```sh
|
10
|
-
npm install --save hsu-utils
|
11
|
-
# 或
|
12
|
-
yarn add hsu-utils
|
13
|
-
```
|
14
|
-
|
15
|
-
## 功能
|
16
|
-
|
17
|
-
- `console_table` 在控制台打印像 MySql 一样的表格
|
18
|
-
- `deepCopy` 深拷贝
|
19
|
-
- `Equal`
|
20
|
-
|
21
|
-
> `ValEqual` 判断值相等,`TypeEqual` 判断类型相同,`ObjEqual` 判断对象相等
|
22
|
-
|
23
|
-
- `Typeof` 获取类型或判断类型
|
24
|
-
|
25
|
-
> string、number、boolean、undefined、function、symbol、bigint、object、array、null、date、formdata、set、map、regexp、arraybuffer、blob
|
26
|
-
|
27
|
-
- `get_string_width` 获取字符串长度
|
28
|
-
> 根据字体属性进行计算,默认 size 为 12,family 为 微软雅黑
|
29
|
-
- `loadImage` 异步加载图片
|
30
|
-
> 确保相同的图片只加载一次
|
31
|
-
- `renderPDF` 渲染 PDF
|
32
|
-
- `downloadFile` 下载文件
|
1
|
+
# [Hsu Utils](https://github.com/VitaTsui/hsu-utils#hsu-utils)
|
2
|
+
|
3
|
+
## 前言
|
4
|
+
|
5
|
+
`hsu-utils` 一些前端的工具集
|
6
|
+
|
7
|
+
## 安装
|
8
|
+
|
9
|
+
```sh
|
10
|
+
npm install --save hsu-utils
|
11
|
+
# 或
|
12
|
+
yarn add hsu-utils
|
13
|
+
```
|
14
|
+
|
15
|
+
## 功能
|
16
|
+
|
17
|
+
- `console_table` 在控制台打印像 MySql 一样的表格
|
18
|
+
- `deepCopy` 深拷贝
|
19
|
+
- `Equal`
|
20
|
+
|
21
|
+
> `ValEqual` 判断值相等,`TypeEqual` 判断类型相同,`ObjEqual` 判断对象相等
|
22
|
+
|
23
|
+
- `Typeof` 获取类型或判断类型
|
24
|
+
|
25
|
+
> string、number、boolean、undefined、function、symbol、bigint、object、array、null、date、formdata、set、map、regexp、arraybuffer、blob
|
26
|
+
|
27
|
+
- `get_string_width` 获取字符串长度
|
28
|
+
> 根据字体属性进行计算,默认 size 为 12,family 为 微软雅黑
|
29
|
+
- `loadImage` 异步加载图片
|
30
|
+
> 确保相同的图片只加载一次
|
31
|
+
- `renderPDF` 渲染 PDF
|
32
|
+
- `downloadFile` 下载文件
|
package/dist/hsu-utils.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
/*!
|
2
2
|
*
|
3
|
-
* hsu-utils v0.0.
|
3
|
+
* hsu-utils v0.0.16
|
4
4
|
*
|
5
5
|
* some front-end utils
|
6
6
|
*
|
7
7
|
* MIT License
|
8
8
|
*
|
9
|
-
* Copyright (c) 2023
|
9
|
+
* Copyright (c) 2023 VitaHsu
|
10
10
|
*
|
11
11
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
12
12
|
* of this software and associated documentation files (the "Software"), to deal
|
@@ -65,7 +65,7 @@ eval("/**\n * @licstart The following is the entire license notice for the\n * J
|
|
65
65
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
66
66
|
|
67
67
|
"use strict";
|
68
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar __1 = __webpack_require__(/*! .. */ \"./tools/index.ts\");\nfunction array_is_includes(arr1, arr2) {\n var
|
68
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar __1 = __webpack_require__(/*! .. */ \"./tools/index.ts\");\nfunction array_is_includes(arr1, arr2) {\n var smallArr = arr1.length <= arr2.length ? arr1 : arr2;\n var largeArr = arr1.length > arr2.length ? arr1 : arr2;\n return smallArr.every(function (item) {\n return !!largeArr.find(function (i) { return __1.Equal.ValEqual(item, i); });\n });\n}\nexports[\"default\"] = array_is_includes;\n\n\n//# sourceURL=webpack://hsu-utils/./tools/ArrayIsIncludes/index.ts?");
|
69
69
|
|
70
70
|
/***/ }),
|
71
71
|
|