@thi.ng/arrays 2.14.13 → 2.14.14
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/README.md +53 -52
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
|
-
<!-- Please see: https://
|
|
3
|
-
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/arrays)
|
|
6
6
|

|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
10
|
> This is one of 214 standalone projects, maintained as part
|
|
11
|
-
> of the [@thi.ng/umbrella](https://
|
|
11
|
+
> of the [@thi.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) ecosystem
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
14
|
-
> 🚀 Please help me to work full-time on these projects by [sponsoring
|
|
15
|
-
>
|
|
14
|
+
> 🚀 Please help me to work full-time on these projects by [sponsoring
|
|
15
|
+
> me](https://codeberg.org/thi.ng/umbrella/src/branch/develop/CONTRIBUTING.md#donations).
|
|
16
|
+
> Thank you! ❤️
|
|
16
17
|
|
|
17
18
|
- [About](#about)
|
|
18
19
|
- [Status](#status)
|
|
@@ -32,7 +33,7 @@ Array / Arraylike utilities.
|
|
|
32
33
|
|
|
33
34
|
**STABLE** - used in production
|
|
34
35
|
|
|
35
|
-
[Search or submit any issues for this package](https://
|
|
36
|
+
[Search or submit any issues for this package](https://codeberg.org/thi.ng/umbrella/issues?q=%5Barrays%5D)
|
|
36
37
|
|
|
37
38
|
## Installation
|
|
38
39
|
|
|
@@ -64,65 +65,65 @@ Package sizes (brotli'd, pre-treeshake): ESM: 3.23 KB
|
|
|
64
65
|
|
|
65
66
|
## Dependencies
|
|
66
67
|
|
|
67
|
-
- [@thi.ng/api](https://
|
|
68
|
-
- [@thi.ng/checks](https://
|
|
69
|
-
- [@thi.ng/compare](https://
|
|
70
|
-
- [@thi.ng/equiv](https://
|
|
71
|
-
- [@thi.ng/errors](https://
|
|
72
|
-
- [@thi.ng/random](https://
|
|
68
|
+
- [@thi.ng/api](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/api)
|
|
69
|
+
- [@thi.ng/checks](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/checks)
|
|
70
|
+
- [@thi.ng/compare](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/compare)
|
|
71
|
+
- [@thi.ng/equiv](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/equiv)
|
|
72
|
+
- [@thi.ng/errors](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/errors)
|
|
73
|
+
- [@thi.ng/random](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/random)
|
|
73
74
|
|
|
74
75
|
Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
|
|
75
76
|
|
|
76
77
|
## Usage examples
|
|
77
78
|
|
|
78
79
|
Six projects in this repo's
|
|
79
|
-
[/examples](https://
|
|
80
|
+
[/examples](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples)
|
|
80
81
|
directory are using this package:
|
|
81
82
|
|
|
82
|
-
| Screenshot | Description | Live demo | Source
|
|
83
|
-
|
|
84
|
-
| <img src="https://
|
|
85
|
-
| <img src="https://
|
|
86
|
-
| <img src="https://
|
|
87
|
-
| <img src="https://
|
|
88
|
-
| <img src="https://
|
|
89
|
-
| <img src="https://
|
|
83
|
+
| Screenshot | Description | Live demo | Source |
|
|
84
|
+
|:-----------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------|:------------------------------------------------------|:-------------------------------------------------------------------------------------------|
|
|
85
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/kmeans-viz.jpg" width="240"/> | k-means clustering visualization | [Demo](https://demo.thi.ng/umbrella/kmeans-viz/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/kmeans-viz) |
|
|
86
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/pixel-gradients.jpg" width="240"/> | Randomized 4-point 2D color gradient image generator | [Demo](https://demo.thi.ng/umbrella/pixel-gradients/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/pixel-gradients) |
|
|
87
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/poly-subdiv.jpg" width="240"/> | Animated, iterative polygon subdivisions & visualization | [Demo](https://demo.thi.ng/umbrella/poly-subdiv/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/poly-subdiv) |
|
|
88
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/related-images.jpg" width="240"/> | Responsive image gallery with tag-based Jaccard similarity ranking | [Demo](https://demo.thi.ng/umbrella/related-images/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/related-images) |
|
|
89
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/stacked-layout.png" width="240"/> | Responsive & reactively computed stacked column layout | [Demo](https://demo.thi.ng/umbrella/stacked-layout/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/stacked-layout) |
|
|
90
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/thing-browser.avif" width="240"/> | Tree-based UI to find & explore thi.ng projects via their associated keywords | [Demo](https://demo.thi.ng/umbrella/thing-browser/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/thing-browser) |
|
|
90
91
|
|
|
91
92
|
## API
|
|
92
93
|
|
|
93
94
|
[Generated API docs](https://docs.thi.ng/umbrella/arrays/)
|
|
94
95
|
|
|
95
|
-
- [`arrayIterator()`](https://
|
|
96
|
-
- [`argMin()` / `argMax()`](https://
|
|
97
|
-
- [`argSort()`](https://
|
|
98
|
-
- [`binarySearch()`](https://
|
|
99
|
-
- [`bisect()`](https://
|
|
100
|
-
- [`blit1d()` / blit2d()](https://
|
|
101
|
-
- [`endsWith()`](https://
|
|
102
|
-
- [`ensureArray()`](https://
|
|
103
|
-
- [`ensureIterable()`](https://
|
|
104
|
-
- [`fillRange()`](https://
|
|
105
|
-
- [`find()`](https://
|
|
106
|
-
- [`findSequence()`](https://
|
|
107
|
-
- [`floydRivest()`](https://
|
|
108
|
-
- [`fuzzyMatch()`](https://
|
|
109
|
-
- [`insert()`](https://
|
|
110
|
-
- [`into()`](https://
|
|
111
|
-
- [`isSorted()`](https://
|
|
112
|
-
- [`levenshtein()`](https://
|
|
113
|
-
- [`multiSwap()`](https://
|
|
114
|
-
- [`peek()`](https://
|
|
115
|
-
- [`permutation()`](https://
|
|
116
|
-
- [`quickSort()`](https://
|
|
117
|
-
- [`rotate()` / `rotateTyped()`](https://
|
|
118
|
-
- [`selectThresholdMin()` / `selectThresholdMax()`](https://
|
|
119
|
-
- [`shuffle()`](https://
|
|
120
|
-
- [`shuffleRange()`](https://
|
|
121
|
-
- [`sortByCachedKey()`](https://
|
|
122
|
-
- [`startsWith()`](https://
|
|
123
|
-
- [`swap()`](https://
|
|
124
|
-
- [`swizzle()`](https://
|
|
125
|
-
- [`topoSort()`](https://
|
|
96
|
+
- [`arrayIterator()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/iterator.ts)
|
|
97
|
+
- [`argMin()` / `argMax()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/argmin.ts)
|
|
98
|
+
- [`argSort()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/arg-sort.ts)
|
|
99
|
+
- [`binarySearch()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/binary-search.ts)
|
|
100
|
+
- [`bisect()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/bisect.ts)
|
|
101
|
+
- [`blit1d()` / blit2d()](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/blit.ts)
|
|
102
|
+
- [`endsWith()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/ends-with.ts)
|
|
103
|
+
- [`ensureArray()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/ensure-array.ts)
|
|
104
|
+
- [`ensureIterable()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/ensure-iterable.ts)
|
|
105
|
+
- [`fillRange()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/fill-range.ts)
|
|
106
|
+
- [`find()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/find.ts)
|
|
107
|
+
- [`findSequence()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/find-sequence.ts)
|
|
108
|
+
- [`floydRivest()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/floyd-rivest.ts)
|
|
109
|
+
- [`fuzzyMatch()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/fuzzy-match.ts)
|
|
110
|
+
- [`insert()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/insert.ts)
|
|
111
|
+
- [`into()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/into.ts)
|
|
112
|
+
- [`isSorted()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/is-sorted.ts)
|
|
113
|
+
- [`levenshtein()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/levenshtein.ts)
|
|
114
|
+
- [`multiSwap()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/swap.ts)
|
|
115
|
+
- [`peek()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/peek.ts)
|
|
116
|
+
- [`permutation()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/permutation.ts)
|
|
117
|
+
- [`quickSort()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/quicksort.ts)
|
|
118
|
+
- [`rotate()` / `rotateTyped()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/rotate.ts)
|
|
119
|
+
- [`selectThresholdMin()` / `selectThresholdMax()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/threshold.ts)
|
|
120
|
+
- [`shuffle()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/shuffle.ts) (w/ custom PRNG support)
|
|
121
|
+
- [`shuffleRange()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/shuffle.ts) (w/ custom PRNG support)
|
|
122
|
+
- [`sortByCachedKey()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/sort-cached.ts)
|
|
123
|
+
- [`startsWith()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/starts-with.ts)
|
|
124
|
+
- [`swap()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/swap.ts)
|
|
125
|
+
- [`swizzle()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/swizzle.ts)
|
|
126
|
+
- [`topoSort()`](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/arrays/src/topo-sort.ts)
|
|
126
127
|
|
|
127
128
|
### Binary search result predicates
|
|
128
129
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/arrays",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.14",
|
|
4
4
|
"description": "Array / Arraylike utilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://
|
|
11
|
+
"url": "git+https://codeberg.org/thi.ng/umbrella.git",
|
|
12
12
|
"directory": "packages/arrays"
|
|
13
13
|
},
|
|
14
14
|
"homepage": "https://thi.ng/arrays",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.12.
|
|
44
|
-
"@thi.ng/checks": "^3.8.
|
|
45
|
-
"@thi.ng/compare": "^2.5.
|
|
46
|
-
"@thi.ng/equiv": "^2.1.
|
|
47
|
-
"@thi.ng/errors": "^2.6.
|
|
48
|
-
"@thi.ng/random": "^4.1.
|
|
43
|
+
"@thi.ng/api": "^8.12.18",
|
|
44
|
+
"@thi.ng/checks": "^3.8.8",
|
|
45
|
+
"@thi.ng/compare": "^2.5.6",
|
|
46
|
+
"@thi.ng/equiv": "^2.1.107",
|
|
47
|
+
"@thi.ng/errors": "^2.6.7",
|
|
48
|
+
"@thi.ng/random": "^4.1.43"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"esbuild": "^0.27.2",
|
|
@@ -188,5 +188,5 @@
|
|
|
188
188
|
"tag": "array",
|
|
189
189
|
"year": 2018
|
|
190
190
|
},
|
|
191
|
-
"gitHead": "
|
|
191
|
+
"gitHead": "8ddf86ea0a1e658ddbf19cc645b29d0c176e29c4\n"
|
|
192
192
|
}
|