nithya-calci 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/cal/add.js ADDED
@@ -0,0 +1,5 @@
1
+ const add =(a,b) =>{//function
2
+ return a+b
3
+ }
4
+
5
+ module.exports =add
package/cal/cal.js ADDED
@@ -0,0 +1,30 @@
1
+ //const add = require("./add");
2
+ //const sub = require("./sub");
3
+ //const {div,mul}= require("./div");
4
+
5
+
6
+ const add =(a,b) =>{//function
7
+ return a+b
8
+ }
9
+
10
+ const sub =(a,b)=>{
11
+ return a-b
12
+
13
+ }
14
+
15
+ const mul =(a,b) =>{
16
+ return a*b
17
+
18
+
19
+ }
20
+
21
+ const div =(a,b) =>{
22
+ return a/b
23
+ }
24
+
25
+ module.exports = {add,sub,mul,div};
26
+
27
+ /*console.log(add(5,5))
28
+ console.log(sub(10,5))
29
+ console.log(mul(5,5))
30
+ console.log(div(5,5))*/
package/cal/div.js ADDED
@@ -0,0 +1,10 @@
1
+ const div =(a,b) =>{
2
+ return a/b
3
+ };
4
+
5
+ const mul =(a,b) =>{
6
+ return a*b
7
+
8
+ };
9
+
10
+ module.exports = { div , mul};
package/cal/index.js ADDED
@@ -0,0 +1 @@
1
+ console.log("Hello World")
package/cal/mul.js ADDED
@@ -0,0 +1,4 @@
1
+ const mul =(a,b) =>{
2
+ return a*b
3
+
4
+ }
package/package.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "nithya-calci",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "type": "commonjs"
13
+ }