caicai_utils_00 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/format.js ADDED
@@ -0,0 +1,8 @@
1
+ export function formatCount() {
2
+ return "200万"
3
+ }
4
+
5
+ export function formatDate() {
6
+ return "2022-10-10"
7
+ }
8
+
package/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export { sum, mul, sub } from './math'
2
+ export { formatCount, formatDate } from './format'
package/math.js ADDED
@@ -0,0 +1,11 @@
1
+ export function sum(num1, num2) {
2
+ return num1 + num2
3
+ }
4
+
5
+ export function mul(num1, num2) {
6
+ return num1 * num2
7
+ }
8
+
9
+ export function sub(num1, num2) {
10
+ return num1 - num2
11
+ }
package/package.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "caicai_utils_00",
3
+ "version": "1.0.0",
4
+ "main": "index.js",
5
+ "keywords": ["math","format", "caicai"],
6
+ "author": "caicai",
7
+ "license": "MIT",
8
+ "description": "a javascript utils"
9
+ }