@truecalc/core 7.0.3 → 7.0.4
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 +12 -4
- package/package.json +1 -1
- package/truecalc_wasm_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -164,18 +164,26 @@ validate('SUM(A1,') // => { valid: false, error: '...' }
|
|
|
164
164
|
|
|
165
165
|
### `list_functions()`
|
|
166
166
|
|
|
167
|
-
Returns metadata for
|
|
167
|
+
Returns metadata for every built-in function as an array of
|
|
168
|
+
`{ name, category, syntax, description }`, sorted by name.
|
|
168
169
|
|
|
169
170
|
```js
|
|
170
171
|
const fns = list_functions();
|
|
172
|
+
fns.length;
|
|
173
|
+
// 518
|
|
174
|
+
|
|
171
175
|
// [
|
|
172
|
-
// { name: '
|
|
173
|
-
// { name: '
|
|
174
|
-
// { name: '
|
|
176
|
+
// { name: 'ABS', category: 'math', syntax: 'ABS(number)', description: 'Absolute value of a number' },
|
|
177
|
+
// { name: 'LEFT', category: 'text', syntax: 'LEFT(text, [num_chars])', description: 'Left portion of a string' },
|
|
178
|
+
// { name: 'PMT', category: 'financial', syntax: 'PMT(rate, nper, pv, [fv], [type])', description: 'Periodic payment for a loan' },
|
|
175
179
|
// ...
|
|
176
180
|
// ]
|
|
177
181
|
```
|
|
178
182
|
|
|
183
|
+
Optional arguments appear in `[brackets]`. Categories are drawn from the engine
|
|
184
|
+
registry — there are 17, including `array`, `database`, `filter`, `lookup`,
|
|
185
|
+
`parser`, `query` and `timezone` alongside the familiar `math`/`text`/`logical`.
|
|
186
|
+
|
|
179
187
|
See the full, live function list at [truecalc.github.io/core](https://truecalc.github.io/core/).
|
|
180
188
|
|
|
181
189
|
## Documentation
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@truecalc/core",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "Spreadsheet formula engine for the browser — Google Sheets–compatible formula evaluator compiled to WebAssembly",
|
|
5
|
-
"version": "7.0.
|
|
5
|
+
"version": "7.0.4",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
package/truecalc_wasm_bg.wasm
CHANGED
|
Binary file
|