lyb-js 1.1.2 → 1.1.5
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 +14 -10
- package/package.json +9 -5
- /package/umd/{lib.js → lyb.js} +0 -0
package/README.md
CHANGED
|
@@ -8,18 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
## 起步
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
> 你可以借助 script 标签直接通过 CDN 来使用 LibJs:
|
|
14
|
-
|
|
15
|
-
```ts
|
|
16
|
-
<script src="https://unpkg.com/lyb-js@1.1.1/dist/Lib.js"></script>
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
> 完整使用
|
|
20
12
|
|
|
21
13
|
```ts
|
|
22
|
-
import { LibJs } from "
|
|
14
|
+
import { LibJs } from "lyb-js";
|
|
23
15
|
|
|
24
16
|
LibJs.Base.libJsGetDataType("Hellow World!"); //"string"
|
|
25
17
|
```
|
|
@@ -46,6 +38,18 @@ libJsGetDataType("Hellow World!"); //"string"
|
|
|
46
38
|
libJsCalculateExpression("(1+2)-(3*4)/5"); //0.6
|
|
47
39
|
```
|
|
48
40
|
|
|
41
|
+
**通过 `CDN ` 使用 `LibJs`**
|
|
42
|
+
|
|
43
|
+
> 你可以借助 `script` 标签直接通过 `CDN` 来使用 `LibJs`
|
|
44
|
+
|
|
45
|
+
```html
|
|
46
|
+
<script src="https://unpkg.com/lyb-js/umd/lyb.js"></script>
|
|
47
|
+
|
|
48
|
+
<script>
|
|
49
|
+
LibJs.Base.libJsGetDataType("Hellow World!"); //"string"
|
|
50
|
+
</script>
|
|
51
|
+
```
|
|
52
|
+
|
|
49
53
|
## 目录
|
|
50
54
|
|
|
51
55
|
### 基础
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lyb-js",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"
|
|
5
|
-
"description": "lyb自用JS方法库",
|
|
3
|
+
"version": "1.1.5",
|
|
4
|
+
"description": "自用JS方法库",
|
|
6
5
|
"license": "ISC",
|
|
7
|
-
"
|
|
6
|
+
"type": "module",
|
|
8
7
|
"types": "./dist/index.d.ts",
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "tsc & vite build"
|
|
11
11
|
},
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
"package.json",
|
|
19
19
|
"umd"
|
|
20
20
|
],
|
|
21
|
+
"author": {
|
|
22
|
+
"name": "冷弋白",
|
|
23
|
+
"email": "1329670984@qq.com"
|
|
24
|
+
},
|
|
21
25
|
"repository": {
|
|
22
26
|
"type": "git",
|
|
23
27
|
"url": "git+https://github.com/lengyibai/lyb-js.git"
|
|
@@ -37,4 +41,4 @@
|
|
|
37
41
|
"decimal.js": "^10.4.3",
|
|
38
42
|
"vite": "^4.5.5"
|
|
39
43
|
}
|
|
40
|
-
}
|
|
44
|
+
}
|
/package/umd/{lib.js → lyb.js}
RENAMED
|
File without changes
|