You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- global_helpers: string shorthand for inline JS
- post (type: many): string shorthand for all transform
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
JavaScript functions available in all [`pre`](#pre-transform), [`post`](#post-transform) transforms, [mock JS sources](#mock-js-variables), [`filter`](#filter), and [`csv.value_parser`](#csv-config).
68
68
69
69
```yaml
70
-
# Full form
70
+
# Shorthand (inline JS only)
71
+
global_helpers: |
72
+
function validate(x) { ... }
73
+
74
+
# Full form (with js_files)
71
75
global_helpers:
72
76
js: |
73
77
function validate(x) { ... }
@@ -80,6 +84,8 @@ global_helpers:
80
84
| `js` | string | Inline JavaScript code |
81
85
| `js_files` | string[] | Paths to JavaScript files (relative to config) |
82
86
87
+
> **Shorthand:** `global_helpers: |` is equivalent to `global_helpers: { js: | }`
0 commit comments