jz-toolkit 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 +194 -0
- package/dist/array/chunk.d.ts +11 -0
- package/dist/array/chunk.d.ts.map +1 -0
- package/dist/array/chunk.js +23 -0
- package/dist/array/compact.d.ts +11 -0
- package/dist/array/compact.d.ts.map +1 -0
- package/dist/array/compact.js +15 -0
- package/dist/array/index.d.ts +3 -0
- package/dist/array/index.d.ts.map +1 -0
- package/dist/array/index.js +18 -0
- package/dist/esm/array/chunk.d.ts +11 -0
- package/dist/esm/array/chunk.d.ts.map +1 -0
- package/dist/esm/array/chunk.js +20 -0
- package/dist/esm/array/compact.d.ts +11 -0
- package/dist/esm/array/compact.d.ts.map +1 -0
- package/dist/esm/array/compact.js +12 -0
- package/dist/esm/array/index.d.ts +3 -0
- package/dist/esm/array/index.d.ts.map +1 -0
- package/dist/esm/array/index.js +2 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +24 -0
- package/dist/esm/object/index.d.ts +3 -0
- package/dist/esm/object/index.d.ts.map +1 -0
- package/dist/esm/object/index.js +2 -0
- package/dist/esm/object/omit.d.ts +13 -0
- package/dist/esm/object/omit.d.ts.map +1 -0
- package/dist/esm/object/omit.js +21 -0
- package/dist/esm/object/pick.d.ts +13 -0
- package/dist/esm/object/pick.d.ts.map +1 -0
- package/dist/esm/object/pick.js +19 -0
- package/dist/esm/string/camelCase.d.ts +11 -0
- package/dist/esm/string/camelCase.d.ts.map +1 -0
- package/dist/esm/string/camelCase.js +17 -0
- package/dist/esm/string/capitalize.d.ts +10 -0
- package/dist/esm/string/capitalize.d.ts.map +1 -0
- package/dist/esm/string/capitalize.js +14 -0
- package/dist/esm/string/index.d.ts +3 -0
- package/dist/esm/string/index.d.ts.map +1 -0
- package/dist/esm/string/index.js +2 -0
- package/dist/esm/types/index.d.ts +19 -0
- package/dist/esm/types/index.d.ts.map +1 -0
- package/dist/esm/types/index.js +4 -0
- package/dist/esm/utility/index.d.ts +3 -0
- package/dist/esm/utility/index.d.ts.map +1 -0
- package/dist/esm/utility/index.js +2 -0
- package/dist/esm/utility/isEmpty.d.ts +13 -0
- package/dist/esm/utility/isEmpty.d.ts.map +1 -0
- package/dist/esm/utility/isEmpty.js +26 -0
- package/dist/esm/utility/isType.d.ts +17 -0
- package/dist/esm/utility/isType.d.ts.map +1 -0
- package/dist/esm/utility/isType.js +42 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +79 -0
- package/dist/object/index.d.ts +3 -0
- package/dist/object/index.d.ts.map +1 -0
- package/dist/object/index.js +18 -0
- package/dist/object/omit.d.ts +13 -0
- package/dist/object/omit.d.ts.map +1 -0
- package/dist/object/omit.js +24 -0
- package/dist/object/pick.d.ts +13 -0
- package/dist/object/pick.d.ts.map +1 -0
- package/dist/object/pick.js +22 -0
- package/dist/string/camelCase.d.ts +11 -0
- package/dist/string/camelCase.d.ts.map +1 -0
- package/dist/string/camelCase.js +20 -0
- package/dist/string/capitalize.d.ts +10 -0
- package/dist/string/capitalize.d.ts.map +1 -0
- package/dist/string/capitalize.js +17 -0
- package/dist/string/index.d.ts +3 -0
- package/dist/string/index.d.ts.map +1 -0
- package/dist/string/index.js +18 -0
- package/dist/types/index.d.ts +19 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +5 -0
- package/dist/utility/index.d.ts +3 -0
- package/dist/utility/index.d.ts.map +1 -0
- package/dist/utility/index.js +18 -0
- package/dist/utility/isEmpty.d.ts +13 -0
- package/dist/utility/isEmpty.d.ts.map +1 -0
- package/dist/utility/isEmpty.js +29 -0
- package/dist/utility/isType.d.ts +17 -0
- package/dist/utility/isType.d.ts.map +1 -0
- package/dist/utility/isType.js +57 -0
- package/package.json +77 -0
package/package.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jz-toolkit",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "一个轻量级的、类似 Lodash 的 JavaScript 工具库",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"module": "dist/esm/index.js",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"README.md",
|
|
12
|
+
"LICENSE"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"require": "./dist/index.js",
|
|
17
|
+
"import": "./dist/esm/index.js",
|
|
18
|
+
"types": "./dist/index.d.ts"
|
|
19
|
+
},
|
|
20
|
+
"./array": {
|
|
21
|
+
"require": "./dist/array/index.js",
|
|
22
|
+
"import": "./dist/esm/array/index.js",
|
|
23
|
+
"types": "./dist/array/index.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./object": {
|
|
26
|
+
"require": "./dist/object/index.js",
|
|
27
|
+
"import": "./dist/esm/object/index.js",
|
|
28
|
+
"types": "./dist/object/index.d.ts"
|
|
29
|
+
},
|
|
30
|
+
"./string": {
|
|
31
|
+
"require": "./dist/string/index.js",
|
|
32
|
+
"import": "./dist/esm/string/index.js",
|
|
33
|
+
"types": "./dist/string/index.d.ts"
|
|
34
|
+
},
|
|
35
|
+
"./function": {
|
|
36
|
+
"require": "./dist/function/index.js",
|
|
37
|
+
"import": "./dist/esm/function/index.js",
|
|
38
|
+
"types": "./dist/function/index.d.ts"
|
|
39
|
+
},
|
|
40
|
+
"./utility": {
|
|
41
|
+
"require": "./dist/utility/index.js",
|
|
42
|
+
"import": "./dist/esm/utility/index.js",
|
|
43
|
+
"types": "./dist/utility/index.d.ts"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "npm run build:cjs && npm run build:esm && npm run build:types",
|
|
48
|
+
"build:cjs": "tsc --module commonjs --outDir dist",
|
|
49
|
+
"build:esm": "tsc --module esnext --outDir dist/esm",
|
|
50
|
+
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
|
51
|
+
"dev": "tsc --watch",
|
|
52
|
+
"test": "jest",
|
|
53
|
+
"test:watch": "jest --watch",
|
|
54
|
+
"test:coverage": "jest --coverage",
|
|
55
|
+
"lint": "eslint src/**/*.ts",
|
|
56
|
+
"format": "prettier --write 'src/**/*.ts'",
|
|
57
|
+
"prepublishOnly": "npm run build && npm run test"
|
|
58
|
+
},
|
|
59
|
+
"keywords": [
|
|
60
|
+
"utility",
|
|
61
|
+
"lodash",
|
|
62
|
+
"functional",
|
|
63
|
+
"toolkit"
|
|
64
|
+
],
|
|
65
|
+
"author": "",
|
|
66
|
+
"license": "MIT",
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@types/jest": "^29.5.0",
|
|
69
|
+
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
70
|
+
"@typescript-eslint/parser": "^6.0.0",
|
|
71
|
+
"eslint": "^8.0.0",
|
|
72
|
+
"jest": "^29.5.0",
|
|
73
|
+
"prettier": "^3.0.0",
|
|
74
|
+
"ts-jest": "^29.1.0",
|
|
75
|
+
"typescript": "^5.0.0"
|
|
76
|
+
}
|
|
77
|
+
}
|