marius_package 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/calculator.js +21 -0
  2. package/package.json +25 -0
package/calculator.js ADDED
@@ -0,0 +1,21 @@
1
+ function add(...nums){
2
+ return nums.reduce((a,b)=>a+b);
3
+ }
4
+
5
+
6
+ function sub(...nums){
7
+ return nums.reduce((a,b)=>a-b);
8
+ }
9
+
10
+
11
+ function mul(...nums){
12
+ return nums.reduce((a,b)=>a*b);
13
+ }
14
+
15
+
16
+
17
+ modules.exports = [
18
+ add,sub,mul
19
+ ]
20
+
21
+
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "marius_package",
3
+ "version": "1.0.0",
4
+ "description": "a package for study purpose",
5
+ "main": "index.js",
6
+ "type":"commonjs",
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/sangwa-marius/tr_stanely.git"
13
+ },
14
+ "keywords": [
15
+ "marius",
16
+ "sangwa",
17
+ "ganza"
18
+ ],
19
+ "author": "Sangwa Marius",
20
+ "license": "MIT",
21
+ "bugs": {
22
+ "url": "https://github.com/sangwa-marius/tr_stanely/issues"
23
+ },
24
+ "homepage": "https://github.com/sangwa-marius/tr_stanely#readme"
25
+ }