Skip to content

Connectum API Reference / @connectum/core / parseServicesEnv

Function: parseServicesEnv()

parseServicesEnv(value): string[]

Defined in: packages/core/src/enabledServices.ts:18

Parse a comma-separated env value into a list of proto typeNames, trimming whitespace and dropping empty entries. Returns [] for an empty/undefined value.

Parameters

value

string | null | undefined

Returns

string[]

Example

ts
`enabledServices: parseServicesEnv(process.env.CONNECTUM_SERVICES)`