NodeAppModule
PackageAxial.Hosting.Node
Node.js signal, argument, and process-exit integration for root Flow applications.
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Operations | ||
| arguments | NodeApp.arguments () | Gets command-line arguments after the Node executable and script path. |
| exitCode | NodeApp.exitCode exit | Maps a final application exit to conventional Node process exit codes. |
| startWithOptions | NodeApp.startWithOptions options describeError environment application | Starts a Node application, translating SIGINT and SIGTERM into coordinated stop and publishing its exit code. |
| start | NodeApp.start describeError environment application | Starts a Node application with the default console-error log sink. |
| runWithOptions | NodeApp.runWithOptions options describeError environment application | Starts a Node application with explicit logging policy and waits for its final exit. |
| run | NodeApp.run describeError environment application | Starts a Node application with the default console-error sink and waits for its final exit. |
Operations
kind:member
kind:member
kind:member
Starts a Node application, translating SIGINT and SIGTERM into coordinated stop and publishing its exit code.
Parameters
| Name | Type | Description |
|---|---|---|
| options | NodeAppOptions | |
| describeError | 'error -> string | |
| environment | 'env | |
| application | Flow<'env, 'error, 'value> |
Returns
AppHandle<'error, 'value>
kind:member
kind:member
Starts a Node application with explicit logging policy and waits for its final exit.
Parameters
| Name | Type | Description |
|---|---|---|
| options | NodeAppOptions | |
| describeError | 'error -> string | |
| environment | 'env | |
| application | Flow<'env, 'error, 'value> |
Returns
Async<Exit<'value, 'error>>

