adityacalc 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 +22 -0
  2. package/package.json +12 -0
package/index.js ADDED
@@ -0,0 +1,22 @@
1
+ function add(a,b){
2
+ console.log(a+b)
3
+ }
4
+
5
+ function sub(a,b){
6
+ console.log(a-b)
7
+ }
8
+
9
+ function mul(a,b){
10
+ console.log(a*b)
11
+ }
12
+ function div(a,b){
13
+ console.log(a/b)
14
+ }
15
+
16
+
17
+ module.exports ={
18
+ addition:add,
19
+ substraction:sub,
20
+ multiplication:mul,
21
+ division:div
22
+ }
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "adityacalc",
3
+ "version": "1.0.0",
4
+ "description": "This is calcular module created by Aditya Kumar",
5
+ "license": "ISC",
6
+ "author": "",
7
+ "type": "commonjs",
8
+ "main": "index.js",
9
+ "scripts": {
10
+ "test": "echo \"Error: no test specified\" && exit 1"
11
+ }
12
+ }