@lotics/cli 0.306.0 → 0.306.1
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/dist/src/cli.js +723 -71
- package/docs/workflows.md +7 -1
- package/package.json +1 -1
package/docs/workflows.md
CHANGED
|
@@ -166,6 +166,11 @@ Only `x` comes back: in text mode `x` is the string itself, in object mode `x.fi
|
|
|
166
166
|
Operators in JavaScript precedence: `? :`, `||`, `??`, `&&`, `== !=`, `< <= > >=`, `+ -`, `* /`, prefix
|
|
167
167
|
`! -`.
|
|
168
168
|
|
|
169
|
+
- Arithmetic is exact decimal (`0.1 + 0.2` is `0.3`). A result computed from a division that does not end
|
|
170
|
+
is the short decimal it reads as (`1 / 3 * 3` is `1`), and stands as computed where it reads long
|
|
171
|
+
(`1 / 3 * 100` is `33.33333333333333`). A comparison between two numbers reads both at 15 significant
|
|
172
|
+
digits. `round` and `formatNumber` round the decimal, a half away from zero: `round(-2.5)` is `-3`. A
|
|
173
|
+
table filter compares stored values exactly.
|
|
169
174
|
- `??` is `coalesce(left, right)`; `?.` reads through a null (`a?.b`, `a?.[0]`, and `s?.trim()` for the
|
|
170
175
|
method names listed under **Helpers**). `x?.()` is refused: helpers and tools are not values.
|
|
171
176
|
- Templates use backticks and `${...}`.
|
|
@@ -226,7 +231,8 @@ Called as `size(arr)`. The method form works only where the name is also a JavaS
|
|
|
226
231
|
`abs`, `mod`, `pow`, `sqrt`, `clamp`, `percentage`
|
|
227
232
|
- **Text**: `upper`, `lower`, `capitalize`, `trim`, `contains`, `startsWith`, `endsWith`, `replace`,
|
|
228
233
|
`replaceAll`, `substring`, `length`, `split`, `join`, `padStart(str, length, char)`,
|
|
229
|
-
`padEnd(str, length, char)`, `formatNumber(x, decimals)` (ungrouped,
|
|
234
|
+
`padEnd(str, length, char)`, `formatNumber(x, decimals)` (ungrouped; rounds the decimal, a half away
|
|
235
|
+
from zero: `formatNumber(1.005, 2)` is `1.01`),
|
|
230
236
|
`formatDecimal(x, decimals, locale)` (grouped: `formatDecimal(151000, 0, "vi-VN")` is `151.000`),
|
|
231
237
|
`numberToWords(x, lang?)` (an integer in words: Vietnamese, or English with `"en"`)
|
|
232
238
|
- **Objects**: `keys`, `values`, `entries`, `nonNullKeys`, `pick`, `omit`, `merge`
|