NodeAppModule

PackageAxial.Hosting.Node
Node.js signal, argument, and process-exit integration for root Flow applications.

Summary

NameSignatureSynopsis
Operations
argumentsNodeApp.arguments ()Gets command-line arguments after the Node executable and script path.
exitCodeNodeApp.exitCode exitMaps a final application exit to conventional Node process exit codes.
startWithOptionsNodeApp.startWithOptions options describeError environment applicationStarts a Node application, translating SIGINT and SIGTERM into coordinated stop and publishing its exit code.
startNodeApp.start describeError environment applicationStarts a Node application with the default console-error log sink.
runWithOptionsNodeApp.runWithOptions options describeError environment applicationStarts a Node application with explicit logging policy and waits for its final exit.
runNodeApp.run describeError environment applicationStarts a Node application with the default console-error sink and waits for its final exit.

Operations

kind:member

arguments

NodeApp.arguments ()
Member
Gets command-line arguments after the Node executable and script path.

Parameters

NameTypeDescription
unit

Returns

string list
kind:member

exitCode

NodeApp.exitCode exit
Member
Maps a final application exit to conventional Node process exit codes.

Parameters

NameTypeDescription
exitExit<'value, 'error>

Returns

int
kind:member

startWithOptions

NodeApp.startWithOptions options describeError environment application
Member
Starts a Node application, translating SIGINT and SIGTERM into coordinated stop and publishing its exit code.

Parameters

NameTypeDescription
optionsNodeAppOptions
describeError'error -> string
environment'env
applicationFlow<'env, 'error, 'value>

Returns

AppHandle<'error, 'value>
kind:member

start

NodeApp.start describeError environment application
Member
Starts a Node application with the default console-error log sink.

Parameters

NameTypeDescription
describeError'a -> string
environment'b
applicationFlow<'b, 'a, 'c>

Returns

AppHandle<'a, 'c>
kind:member

runWithOptions

NodeApp.runWithOptions options describeError environment application
Member
Starts a Node application with explicit logging policy and waits for its final exit.

Parameters

NameTypeDescription
optionsNodeAppOptions
describeError'error -> string
environment'env
applicationFlow<'env, 'error, 'value>

Returns

Async<Exit<'value, 'error>>
kind:member

run

NodeApp.run describeError environment application
Member
Starts a Node application with the default console-error sink and waits for its final exit.

Parameters

NameTypeDescription
describeError'a -> string
environment'b
applicationFlow<'b, 'a, 'c>

Returns

Async<Exit<'c, 'a>>