xuyoucheng-npm 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.
Files changed (2) hide show
  1. package/index.js +13 -0
  2. package/package.json +13 -0
package/index.js ADDED
@@ -0,0 +1,13 @@
1
+ // A simple npm package example
2
+ function hello() {
3
+ return 'Hello from my npm package!';
4
+ }
5
+
6
+ function add(a, b) {
7
+ return a + b;
8
+ }
9
+
10
+ module.exports = {
11
+ hello,
12
+ add
13
+ };
package/package.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "xuyoucheng-npm",
3
+ "version": "1.0.0",
4
+ "description": "徐友成的npm包",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "xuyoucheng",
11
+ "license": "ISC",
12
+ "type": "commonjs"
13
+ }