Classes
Name | Description |
---|---|
CFunction | No description |
Structs
Name | Description |
---|---|
CFunctionProps | No description |
ExecOptions | No description |
new CFunction(props: CFunctionProps)
- props (
CFunctionProps
) No description- capture (
Map<string, any>
) Symbols to capture. Optional - code (
string
) Javascript code to execute. Default: "true;"
- capture (
Name | Type | Description |
---|---|---|
env | Map<string, string> |
Environment variables that are expected to be available when the function is executed. |
outfile | string |
The location of the function bundle (.js file). |
toJson(): any
Returns:
any
static exec(file: string, options?: ExecOptions): any
- file (
string
) No description - options (
ExecOptions
) No description- env (
Map<string, string>
) Environment variables to bind to the child process. Default: {}
- env (
Returns:
any
Name | Type | Description |
---|---|---|
capture? | Map<string, any> |
Symbols to capture. Optional |
code? | string |
Javascript code to execute. Default: "true;" |
Name | Type | Description |
---|---|---|
env? | Map<string, string> |
Environment variables to bind to the child process. Default: {} |