math-utils-simple 1.0.0 → 1.1.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/package.json +8 -3
- package/src/arithmetic/abs.js +3 -0
- package/src/arithmetic/cube.js +3 -0
- package/src/arithmetic/cubeRoot.js +3 -0
- package/src/arithmetic/decrement.js +3 -0
- package/src/arithmetic/increment.js +3 -0
- package/src/arithmetic/mod.js +4 -0
- package/src/arithmetic/negate.js +3 -0
- package/src/arithmetic/nthRoot.js +4 -0
- package/src/arithmetic/reciprocal.js +4 -0
- package/src/arithmetic/square.js +3 -0
- package/src/index.js +16 -10
- package/src/utils/validate.js +5 -0
- /package/src/{add.js → arithmetic/add.js} +0 -0
- /package/src/{divide.js → arithmetic/divide.js} +0 -0
- /package/src/{multiply.js → arithmetic/multiply.js} +0 -0
- /package/src/{power.js → arithmetic/power.js} +0 -0
- /package/src/{sqrt.js → arithmetic/sqrt.js} +0 -0
- /package/src/{subtract.js → arithmetic/subtract.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "math-utils-simple",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "A simple math utility library for npm",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -10,7 +10,12 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "node --test"
|
|
12
12
|
},
|
|
13
|
-
"keywords": [
|
|
13
|
+
"keywords": [
|
|
14
|
+
"math",
|
|
15
|
+
"utils",
|
|
16
|
+
"npm",
|
|
17
|
+
"library"
|
|
18
|
+
],
|
|
14
19
|
"author": "Umar Farooq",
|
|
15
20
|
"license": "MIT"
|
|
16
|
-
}
|
|
21
|
+
}
|
package/src/index.js
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
export { default as add } from "./add.js";
|
|
2
|
-
export { default as subtract } from "./subtract.js";
|
|
3
|
-
export { default as multiply } from "./multiply.js";
|
|
4
|
-
export { default as divide } from "./divide.js";
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as
|
|
10
|
-
export { default as
|
|
1
|
+
export { default as add } from "./arithmetic/add.js";
|
|
2
|
+
export { default as subtract } from "./arithmetic/subtract.js";
|
|
3
|
+
export { default as multiply } from "./arithmetic/multiply.js";
|
|
4
|
+
export { default as divide } from "./arithmetic/divide.js";
|
|
5
|
+
export { default as mod } from "./arithmetic/mod.js";
|
|
6
|
+
export { default as power } from "./arithmetic/power.js";
|
|
7
|
+
export { default as sqrt } from "./arithmetic/sqrt.js";
|
|
8
|
+
export { default as cubeRoot } from "./arithmetic/cubeRoot.js";
|
|
9
|
+
export { default as nthRoot } from "./arithmetic/nthRoot.js";
|
|
10
|
+
export { default as abs } from "./arithmetic/abs.js";
|
|
11
|
+
export { default as negate } from "./arithmetic/negate.js";
|
|
12
|
+
export { default as increment } from "./arithmetic/increment.js";
|
|
13
|
+
export { default as decrement } from "./arithmetic/decrement.js";
|
|
14
|
+
export { default as square } from "./arithmetic/square.js";
|
|
15
|
+
export { default as cube } from "./arithmetic/cube.js";
|
|
16
|
+
export { default as reciprocal } from "./arithmetic/reciprocal.js";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|