NodeAppModule
PackageAxial.Hosting.Node
Node.js signal, argument, and process-exit integration for root Flow applications.
Summary
| Name | Signature | Synopsis |
|---|---|---|
| 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. |
| start | NodeApp.start describeError environment application | Starts a Node application, translating SIGINT and SIGTERM into coordinated stop and publishing its exit code. |
| run | NodeApp.run describeError environment application | Starts a Node application and waits for its final exit. |
Gets command-line arguments after the Node executable and script path.
Parameters
| Name | Type | Description |
|---|---|---|
| unit |
Returns
string list
Maps a final application exit to conventional Node process exit codes.
Parameters
| Name | Type | Description |
|---|---|---|
| exit | Exit<'value, 'error> |
Returns
int
Starts a Node application, translating SIGINT and SIGTERM into coordinated stop and publishing its exit code.
Parameters
| Name | Type | Description |
|---|---|---|
| describeError | 'error -> string | |
| environment | 'env | |
| application | Flow<'env, 'error, 'value> |
Returns
AppHandle<'error, 'value>

