extra-math 1.3.51 → 1.3.53
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/LICENSE +1 -1
- package/README.md +13 -13
- package/package.json +10 -10
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
**Mathematics** is the classification and study of all possible patterns [(1)].<br>
|
|
2
2
|
📦 [Node.js](https://www.npmjs.com/package/extra-math),
|
|
3
3
|
🌐 [Web](https://www.npmjs.com/package/extra-math.web),
|
|
4
4
|
📜 [Files](https://unpkg.com/extra-math/),
|
|
5
5
|
📰 [JSDoc](https://nodef.github.io/extra-math/),
|
|
6
6
|
📘 [Wiki](https://github.com/nodef/extra-math/wiki/).
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*comparing* numbers, *rounding* numbers, performing *rounded division*,
|
|
8
|
+
This package includes common number functions related to querying *about*
|
|
9
|
+
numbers, *comparing* numbers, *rounding* numbers, performing *rounded division*,
|
|
11
10
|
performing *modulo* operations, *controlling range* of numbers, performing
|
|
12
11
|
*arithmetic* operations, obtaining *divisors* of a number (and related
|
|
13
12
|
operations), getting the number of possible *arrangements* of a set of objects,
|
|
@@ -33,8 +32,9 @@ sorted, and [modes] gives the values which are repeated most often. The
|
|
|
33
32
|
difference between the largest and the smallest values is the [range].
|
|
34
33
|
[variance] is a measure of variability of numbers.
|
|
35
34
|
|
|
36
|
-
This package is available in
|
|
37
|
-
|
|
35
|
+
This package is available in *Node.js* and *Web* formats. To use it on the web,
|
|
36
|
+
simply use the `extra_math` global variable after loading with a `<script>`
|
|
37
|
+
tag from the [jsDelivr CDN].
|
|
38
38
|
|
|
39
39
|
[(1)]: https://en.wikipedia.org/wiki/Walter_Warwick_Sawyer
|
|
40
40
|
[jsDelivr CDN]: https://cdn.jsdelivr.net/npm/extra-math.web/index.js
|
|
@@ -45,20 +45,20 @@ exposed as `extra_math` standalone variable and can be loaded from [jsDelivr CDN
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
```javascript
|
|
48
|
-
const
|
|
49
|
-
// import * as
|
|
50
|
-
// import * as
|
|
48
|
+
const xmath = require('extra-math');
|
|
49
|
+
// import * as xmath from "extra-math";
|
|
50
|
+
// import * as xmath from "https://unpkg.com/extra-math/index.mjs"; (deno)
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
xmath.sum(1, 2, 3, 4);
|
|
53
53
|
// → 10
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
xmath.median(1, 7, 8);
|
|
56
56
|
// → 7
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
xmath.variance(1, 2, 3, 4);
|
|
59
59
|
// → 1.25
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
xmath.lcm(2, 3, 4);
|
|
62
62
|
// → 12
|
|
63
63
|
```
|
|
64
64
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "extra-math",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.3.53",
|
|
4
|
+
"description": "Mathematics is the classification and study of all possible patterns.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -84,14 +84,14 @@
|
|
|
84
84
|
},
|
|
85
85
|
"homepage": "https://github.com/nodef/extra-math#readme",
|
|
86
86
|
"devDependencies": {
|
|
87
|
-
"@rollup/plugin-commonjs": "^
|
|
88
|
-
"@rollup/plugin-node-resolve": "^15.0.
|
|
89
|
-
"@types/jest": "^29.
|
|
90
|
-
"extra-build": "^2.2.
|
|
91
|
-
"extra-number": "^2.3.
|
|
92
|
-
"jest": "^29.
|
|
87
|
+
"@rollup/plugin-commonjs": "^24.1.0",
|
|
88
|
+
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
89
|
+
"@types/jest": "^29.5.0",
|
|
90
|
+
"extra-build": "^2.2.42",
|
|
91
|
+
"extra-number": "^2.3.10",
|
|
92
|
+
"jest": "^29.5.0",
|
|
93
93
|
"rollup-plugin-cleanup": "^3.2.1",
|
|
94
|
-
"rollup-plugin-dts": "^5.
|
|
95
|
-
"ts-jest": "^29.0
|
|
94
|
+
"rollup-plugin-dts": "^5.3.0",
|
|
95
|
+
"ts-jest": "^29.1.0"
|
|
96
96
|
}
|
|
97
97
|
}
|