cc-tools-utils 0.0.1 → 0.0.2
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 +7 -39
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/lib/js/cesiumHooks.d.ts +66 -0
- package/lib/js/cesiumHooks.js +1054 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,44 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
一个由 chencheng)开发与维护的个人 JavaScript/Node.js 工具函数库,旨在为日常开发提供常用的、高质量的辅助工具。
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
打包 导出的整个包的名称为index.js 全部混入成一个index.js
|
|
6
|
-
遇到ts文件使用ts-loader进行加载
|
|
7
|
-
无论js 还是 ts 都需要进行babel转义成es5等支持更低版本浏览器的版本
|
|
3
|
+
✨ 特性
|
|
4
|
+
开箱即用:简单导入,无需复杂配置
|
|
8
5
|
|
|
9
|
-
|
|
6
|
+
轻量无依赖:保持核心功能的纯净,不引入第三方依赖
|
|
10
7
|
|
|
11
|
-
|
|
8
|
+
类型友好:使用 TypeScript 编写,提供完整的类型定义
|
|
12
9
|
|
|
13
|
-
|
|
14
|
-
通过命令npm config set registry https://registry.npmjs.org/
|
|
15
|
-
|
|
16
|
-
npm 上传的命令为
|
|
17
|
-
先登录
|
|
18
|
-
npm login
|
|
19
|
-
再发布
|
|
20
|
-
npm publish
|
|
21
|
-
|
|
22
|
-
账号:
|
|
23
|
-
chencheng1998
|
|
24
|
-
13512597595cc
|
|
25
|
-
|
|
26
|
-
对于版本要求
|
|
27
|
-
node v20.14.0
|
|
28
|
-
npm 10.9.0
|
|
29
|
-
|
|
30
|
-
chencheng19981014
|
|
31
|
-
13512597595cc
|
|
32
|
-
13151193828@163.com
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
2FA
|
|
36
|
-
2af26bf09d6ff92b1b034e6eab54c7deb655bb339b0f1a5379b200f02f815251
|
|
37
|
-
f6732d5d0c4816e51076304b88827e07420b0d5261b94545c0295fbb7d50a39a
|
|
38
|
-
1b14023b2ce3dbd220388f5f27e012faf7dc01df7227251be93a54f8f30edc60
|
|
39
|
-
d9a2bcb440a0278363c45f51d9fec1b8a56fa2511ab2b12dd4a9ef763e1e6732
|
|
40
|
-
dc1161f6b1a64f778b7f683748dfb59c20630350cf42e695cc6ff7f5d0107952
|
|
41
|
-
|
|
42
|
-
token
|
|
43
|
-
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
|
|
10
|
+
模块化:按需引入,支持 Tree Shaking
|
|
44
11
|
|
|
12
|
+
良好测试:核心功能均有单元测试覆盖
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as img from "./lib/img/Transform";
|
|
2
2
|
import * as js from "./lib/js/tools";
|
|
3
3
|
import * as bus from "./lib/js/bus";
|
|
4
|
+
import * as cesiumHooks from "./lib/js/cesiumHooks";
|
|
4
5
|
declare const _default: {
|
|
5
6
|
img: typeof img;
|
|
6
7
|
js: typeof js;
|
|
7
8
|
bus: typeof bus;
|
|
9
|
+
cesiumHooks: typeof cesiumHooks;
|
|
8
10
|
};
|
|
9
11
|
export default _default;
|