radashi 12.2.0-beta.45f2ac3 → 12.2.0-beta.6300f77
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 +11 -20
- package/dist/{index.cjs → radashi.cjs} +623 -376
- package/dist/{index.d.cts → radashi.d.cts} +419 -160
- package/dist/{index.d.ts → radashi.d.ts} +419 -160
- package/dist/{index.js → radashi.js} +617 -372
- package/dist/tmp/array/alphabetical.d.ts +5 -0
- package/dist/tmp/array/alphabetical.js +12 -0
- package/dist/tmp/array/boil.d.ts +10 -0
- package/dist/tmp/array/boil.js +15 -0
- package/dist/tmp/array/cluster.d.ts +9 -0
- package/dist/tmp/array/cluster.js +14 -0
- package/dist/tmp/array/counting.d.ts +10 -0
- package/dist/tmp/array/counting.js +19 -0
- package/dist/tmp/array/diff.d.ts +13 -0
- package/dist/tmp/array/diff.js +28 -0
- package/dist/tmp/array/first.d.ts +13 -0
- package/dist/tmp/array/first.js +3 -0
- package/dist/tmp/array/flat.d.ts +10 -0
- package/dist/tmp/array/flat.js +15 -0
- package/dist/tmp/array/fork.d.ts +10 -0
- package/dist/tmp/array/fork.js +18 -0
- package/dist/tmp/array/group.d.ts +13 -0
- package/dist/tmp/array/group.js +20 -0
- package/dist/tmp/array/intersects.d.ts +12 -0
- package/dist/tmp/array/intersects.js +21 -0
- package/dist/tmp/array/iterate.d.ts +13 -0
- package/dist/tmp/array/iterate.js +19 -0
- package/dist/tmp/array/last.d.ts +13 -0
- package/dist/tmp/array/last.js +3 -0
- package/dist/tmp/array/list.d.ts +15 -0
- package/dist/tmp/array/list.js +18 -0
- package/dist/tmp/array/max.d.ts +11 -0
- package/dist/tmp/array/max.js +5 -0
- package/dist/tmp/array/merge.d.ts +15 -0
- package/dist/tmp/array/merge.js +38 -0
- package/dist/tmp/array/min.d.ts +11 -0
- package/dist/tmp/array/min.js +5 -0
- package/dist/tmp/array/objectify.d.ts +17 -0
- package/dist/tmp/array/objectify.js +22 -0
- package/dist/tmp/array/range.d.ts +16 -0
- package/dist/tmp/array/range.js +27 -0
- package/dist/tmp/array/replace.d.ts +10 -0
- package/dist/tmp/array/replace.js +28 -0
- package/dist/tmp/array/replaceOrAppend.d.ts +14 -0
- package/dist/tmp/array/replaceOrAppend.js +35 -0
- package/dist/tmp/array/select.d.ts +15 -0
- package/dist/tmp/array/select.js +29 -0
- package/dist/tmp/array/selectFirst.d.ts +15 -0
- package/dist/tmp/array/selectFirst.js +25 -0
- package/dist/tmp/array/shift.d.ts +11 -0
- package/dist/tmp/array/shift.js +20 -0
- package/dist/tmp/array/sift.d.ts +11 -0
- package/dist/tmp/array/sift.js +11 -0
- package/dist/tmp/array/sort.d.ts +16 -0
- package/dist/tmp/array/sort.js +23 -0
- package/dist/tmp/array/sum.d.ts +18 -0
- package/dist/tmp/array/sum.js +3 -0
- package/dist/tmp/array/toggle.d.ts +28 -0
- package/dist/tmp/array/toggle.js +48 -0
- package/dist/tmp/array/unique.d.ts +11 -0
- package/dist/tmp/array/unique.js +24 -0
- package/dist/tmp/array/zip.d.ts +14 -0
- package/dist/tmp/array/zip.js +8 -0
- package/dist/tmp/array/zipToObject.d.ts +16 -0
- package/dist/tmp/array/zipToObject.js +30 -0
- package/dist/tmp/async/AggregateError.d.ts +9 -0
- package/dist/tmp/async/AggregateError.js +16 -0
- package/dist/tmp/async/all.d.ts +35 -0
- package/dist/tmp/async/all.js +20 -0
- package/dist/tmp/async/defer.d.ts +10 -0
- package/dist/tmp/async/defer.js +26 -0
- package/dist/tmp/async/guard.d.ts +9 -0
- package/dist/tmp/async/guard.js +23 -0
- package/dist/tmp/async/map.d.ts +5 -0
- package/dist/tmp/async/map.js +16 -0
- package/dist/tmp/async/parallel.d.ts +7 -0
- package/dist/tmp/async/parallel.js +42 -0
- package/dist/tmp/async/reduce.d.ts +5 -0
- package/dist/tmp/async/reduce.js +16 -0
- package/dist/tmp/async/retry.d.ts +9 -0
- package/dist/tmp/async/retry.js +31 -0
- package/dist/tmp/async/sleep.d.ts +4 -0
- package/dist/tmp/async/sleep.js +6 -0
- package/dist/tmp/async/tryit.d.ts +7 -0
- package/dist/tmp/async/tryit.js +23 -0
- package/dist/tmp/curry/callable.d.ts +16 -0
- package/dist/tmp/curry/callable.js +26 -0
- package/dist/tmp/curry/chain.d.ts +9 -0
- package/dist/tmp/curry/chain.js +5 -0
- package/dist/tmp/curry/compose.d.ts +9 -0
- package/dist/tmp/curry/compose.js +3 -0
- package/dist/tmp/curry/debounce.d.ts +27 -0
- package/dist/tmp/curry/debounce.js +33 -0
- package/dist/tmp/curry/memo.d.ts +10 -0
- package/dist/tmp/curry/memo.js +29 -0
- package/dist/tmp/curry/partial.d.ts +27 -0
- package/dist/tmp/curry/partial.js +15 -0
- package/dist/tmp/curry/partob.d.ts +5 -0
- package/dist/tmp/curry/partob.js +10 -0
- package/dist/tmp/curry/proxied.d.ts +5 -0
- package/dist/tmp/curry/proxied.js +9 -0
- package/dist/tmp/curry/throttle.d.ts +15 -0
- package/dist/tmp/curry/throttle.js +24 -0
- package/dist/tmp/mod.d.ts +98 -0
- package/dist/tmp/mod.js +98 -0
- package/dist/tmp/number/inRange.d.ts +27 -0
- package/dist/tmp/number/inRange.js +13 -0
- package/dist/tmp/number/toFloat.d.ts +1 -0
- package/dist/tmp/number/toFloat.js +8 -0
- package/dist/tmp/number/toInt.d.ts +1 -0
- package/dist/tmp/number/toInt.js +8 -0
- package/dist/tmp/object/assign.d.ts +6 -0
- package/dist/tmp/object/assign.js +23 -0
- package/dist/tmp/object/clone.d.ts +6 -0
- package/dist/tmp/object/clone.js +24 -0
- package/dist/tmp/object/construct.d.ts +10 -0
- package/dist/tmp/object/construct.js +18 -0
- package/dist/tmp/object/crush.d.ts +10 -0
- package/dist/tmp/object/crush.js +16 -0
- package/dist/tmp/object/filterKey.d.ts +14 -0
- package/dist/tmp/object/filterKey.js +12 -0
- package/dist/tmp/object/get.d.ts +15 -0
- package/dist/tmp/object/get.js +35 -0
- package/dist/tmp/object/invert.d.ts +5 -0
- package/dist/tmp/object/invert.js +14 -0
- package/dist/tmp/object/keys.d.ts +11 -0
- package/dist/tmp/object/keys.js +39 -0
- package/dist/tmp/object/listify.d.ts +4 -0
- package/dist/tmp/object/listify.js +16 -0
- package/dist/tmp/object/lowerize.d.ts +8 -0
- package/dist/tmp/object/lowerize.js +7 -0
- package/dist/tmp/object/mapEntries.d.ts +4 -0
- package/dist/tmp/object/mapEntries.js +13 -0
- package/dist/tmp/object/mapKeys.d.ts +4 -0
- package/dist/tmp/object/mapKeys.js +10 -0
- package/dist/tmp/object/mapValues.d.ts +13 -0
- package/dist/tmp/object/mapValues.js +7 -0
- package/dist/tmp/object/omit.d.ts +5 -0
- package/dist/tmp/object/omit.js +20 -0
- package/dist/tmp/object/pick.d.ts +4 -0
- package/dist/tmp/object/pick.js +14 -0
- package/dist/tmp/object/set.d.ts +10 -0
- package/dist/tmp/object/set.js +29 -0
- package/dist/tmp/object/shake.d.ts +5 -0
- package/dist/tmp/object/shake.js +16 -0
- package/dist/tmp/object/upperize.d.ts +8 -0
- package/dist/tmp/object/upperize.js +7 -0
- package/dist/tmp/random/draw.d.ts +4 -0
- package/dist/tmp/random/draw.js +12 -0
- package/dist/tmp/random/random.d.ts +4 -0
- package/dist/tmp/random/random.js +6 -0
- package/dist/tmp/random/shuffle.d.ts +1 -0
- package/dist/tmp/random/shuffle.js +6 -0
- package/dist/tmp/random/uid.d.ts +1 -0
- package/dist/tmp/random/uid.js +7 -0
- package/dist/tmp/series/series.d.ts +14 -0
- package/dist/tmp/series/series.js +76 -0
- package/dist/tmp/string/camel.d.ts +7 -0
- package/dist/tmp/string/camel.js +22 -0
- package/dist/tmp/string/capitalize.d.ts +7 -0
- package/dist/tmp/string/capitalize.js +13 -0
- package/dist/tmp/string/dash.d.ts +7 -0
- package/dist/tmp/string/dash.js +22 -0
- package/dist/tmp/string/pascal.d.ts +7 -0
- package/dist/tmp/string/pascal.js +13 -0
- package/dist/tmp/string/snake.d.ts +9 -0
- package/dist/tmp/string/snake.js +25 -0
- package/dist/tmp/string/template.d.ts +13 -0
- package/dist/tmp/string/template.js +22 -0
- package/dist/tmp/string/title.d.ts +8 -0
- package/dist/tmp/string/title.js +19 -0
- package/dist/tmp/string/trim.d.ts +13 -0
- package/dist/tmp/string/trim.js +20 -0
- package/dist/tmp/typed/isArray.d.ts +1 -0
- package/dist/tmp/typed/isArray.js +1 -0
- package/dist/tmp/typed/isDate.d.ts +1 -0
- package/dist/tmp/typed/isDate.js +3 -0
- package/dist/tmp/typed/isEmpty.d.ts +1 -0
- package/dist/tmp/typed/isEmpty.js +31 -0
- package/dist/tmp/typed/isEqual.d.ts +1 -0
- package/dist/tmp/typed/isEqual.js +31 -0
- package/dist/tmp/typed/isFloat.d.ts +1 -0
- package/dist/tmp/typed/isFloat.js +4 -0
- package/dist/tmp/typed/isFunction.d.ts +1 -0
- package/dist/tmp/typed/isFunction.js +4 -0
- package/dist/tmp/typed/isInt.d.ts +1 -0
- package/dist/tmp/typed/isInt.js +4 -0
- package/dist/tmp/typed/isIntString.d.ts +1 -0
- package/dist/tmp/typed/isIntString.js +8 -0
- package/dist/tmp/typed/isNumber.d.ts +1 -0
- package/dist/tmp/typed/isNumber.js +8 -0
- package/dist/tmp/typed/isObject.d.ts +1 -0
- package/dist/tmp/typed/isObject.js +3 -0
- package/dist/tmp/typed/isPlainObject.d.ts +1 -0
- package/dist/tmp/typed/isPlainObject.js +13 -0
- package/dist/tmp/typed/isPrimitive.d.ts +10 -0
- package/dist/tmp/typed/isPrimitive.js +14 -0
- package/dist/tmp/typed/isPromise.d.ts +6 -0
- package/dist/tmp/typed/isPromise.js +9 -0
- package/dist/tmp/typed/isString.d.ts +1 -0
- package/dist/tmp/typed/isString.js +3 -0
- package/dist/tmp/typed/isSymbol.d.ts +1 -0
- package/dist/tmp/typed/isSymbol.js +3 -0
- package/package.json +14 -17
package/README.md
CHANGED
|
@@ -10,10 +10,15 @@
|
|
|
10
10
|
Radashi, pronounced /raw-dash-ee/, is a modern, zero-dependency JavaScript utility toolkit built with TypeScript for type-safe, readable, and maintainable code. Radashi omits functions that have become obsolete in Lodash and introduces innovative tools for improved error handling, asynchronous operations, and data manipulation. With a focus on readability and maintainability, Radashi ensures that its source code is easy to understand and use, making it simple for developers to copy individual functions directly from GitHub if needed. Radashi is the go-to toolkit for cleaner, more efficient code in today's JavaScript ecosystem.
|
|
11
11
|
|
|
12
12
|
- **Is this related to Radash?**
|
|
13
|
-
Yes! This is a fork of the renowned [`radash`](https://github.com/sodiray/radash) library by Ray Epps [@sodiray](https://github.com/sodiray).
|
|
13
|
+
Yes! This is a fork of the renowned [`radash`](https://github.com/sodiray/radash) library by Ray Epps [@sodiray](https://github.com/sodiray).
|
|
14
|
+
|
|
15
|
+
- **Why use this over Radash?**
|
|
16
|
+
This fork aims to be a more consistently maintained version, with bug fixes and improvements. We're open to adding many maintainers to the Radashi team, to keep responsiveness high.
|
|
17
|
+
|
|
18
|
+
We are a **community first** fork, which means putting the community's needs first. As such, your feedback is very welcome and we value your perspective. Specifically, we want you to [contribute your viewpoint](https://github.com/orgs/radashi-org/discussions/categories/rfcs?discussions_q=is%3Aopen+category%3ARFCs) to discussions in our RFCs category.
|
|
14
19
|
|
|
15
20
|
- **Is there official documentation?**
|
|
16
|
-
Currently, there is no documentation beyond this page.
|
|
21
|
+
Currently, there is no documentation beyond this page. There is work being done, which is tracked by #40. Until then, you can refer to the original `radash` documentation.
|
|
17
22
|
|
|
18
23
|
<a href="https://radash-docs.vercel.app">
|
|
19
24
|
<img src="https://github.com/radashi-org/radashi/raw/main/img/docs-button.png" alt="Radash documentation" width="250px" />
|
|
@@ -51,9 +56,7 @@
|
|
|
51
56
|
- ⚠️ **Beware:** Preview releases are not audited by the Radashi team. Always look at their
|
|
52
57
|
changes in the PR to ensure no malicious code was introduced.
|
|
53
58
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
<img src="https://github.com/radashi-org/radashi/raw/main/img/rule.png" width="100%" />
|
|
59
|
+
<img src="https://github.com/radashi-org/radashi/raw/b80a0e4/img/rule.png" width="100%" />
|
|
57
60
|
|
|
58
61
|
## Install
|
|
59
62
|
|
|
@@ -69,9 +72,7 @@ yarn add radashi
|
|
|
69
72
|
npm install radashi
|
|
70
73
|
```
|
|
71
74
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
<img src="https://github.com/radashi-org/radashi/raw/main/img/rule.png" width="100%" />
|
|
75
|
+
<img src="https://github.com/radashi-org/radashi/raw/b80a0e4/img/rule.png" width="100%" />
|
|
75
76
|
|
|
76
77
|
## Contributing
|
|
77
78
|
|
|
@@ -81,22 +82,12 @@ Contributions are welcome and appreciated! Check out the contributing guide befo
|
|
|
81
82
|
<img src="https://github.com/radashi-org/radashi/raw/main/img/contributing-button.png" alt="Contributing to Radashi" width="250px" />
|
|
82
83
|
</a>
|
|
83
84
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
<img src="https://github.com/radashi-org/radashi/raw/main/img/rule.png" width="100%" />
|
|
87
|
-
|
|
88
|
-
## Changelog
|
|
89
|
-
|
|
90
|
-
This section documents the changes between the original `radash` library and this fork.
|
|
91
|
-
|
|
92
|
-
### 12.1.0
|
|
93
|
-
|
|
94
|
-
- Initial release. No differences.
|
|
85
|
+
<img src="https://github.com/radashi-org/radashi/raw/b80a0e4/img/rule.png" width="100%" />
|
|
95
86
|
|
|
96
87
|
|
|
97
88
|
|
|
98
89
|
<div align="center">
|
|
99
90
|
<p align="center">
|
|
100
|
-
<img src="https://github.com/radashi-org/radashi/raw/
|
|
91
|
+
<img src="https://github.com/radashi-org/radashi/raw/46c8897/img/footer.png" alt="Radashi" width="100%" />
|
|
101
92
|
</p>
|
|
102
93
|
</div>
|