Browse Source

初始化项目,添加sum函数和package.json文件

zhuf 6 months ago
commit
92f1801767
2 changed files with 15 additions and 0 deletions
  1. 3 0
      index.js
  2. 12 0
      package.json

+ 3 - 0
index.js

@@ -0,0 +1,3 @@
+export function sum(a, b) {
+  return a + b;
+}

+ 12 - 0
package.json

@@ -0,0 +1,12 @@
+{
+  "name": "utils",
+  "version": "1.0.0",
+  "description": "",
+  "main": "index.js",
+  "scripts": {
+    "test": "echo \"Error: no test specified\" && exit 1"
+  },
+  "keywords": [],
+  "author": "",
+  "license": "ISC"
+}