process(script, cursor) Last updated: 30. May 2026
Executes a Docly script string and returns its output. Requires specific access granted, due to risk of producing unintended back doors. Such as running malicious scripts from user input.
Parameters
| Name | Type | Description |
|---|---|---|
| script | string | #JS code to execute |
| cursor | object | Object / values to make available in as global variables (this). |
Returns
Produced output from script as string.
Example
Data
#process(myscript, object)#