1.2.2 • Published 1 year ago

camunda-8-credentials-from-env v1.2.2

Weekly downloads
-
License
Apache 2.0
Repository
github
Last release
1 year ago

Camunda 8 Client Credentials from the Environment for Node.js

NPM

Community Extension

Lifecycle

License

Deterministically extract Camunda 8 Client credentials from the environment in Node.js. Uses neon-env under the hood.

To install in your project:

npm i camunda-8-credentials-from-env

To use:

import * as c from "camunda-8-credentials-from-env"

// throws if required credential elements are not found in the environment
const operateCreds = c.getOperateCredentials()
const optimizeCreds = c.getOptimiseCredentials()
const tasklistCreds = c.getTasklistCredentials()
const zeebeCreds = c.getZeebeCredentials()
const consoleCreds = c.getConsoleCredentials()

The library will only hit the environment once. Further calls to the same method will return a cached set of values.