One stop solution to Key 🗝 management!
This is the official EnvDesk SDK for javascript.
Create your free account and generate relevant keys at Envdesk. For detailed steps follow this tutorial
$ npm install envdesk
Having generating your application access_key
and environment
const Envdesk = require("envdesk")
Envdesk.engine.loadVariables({
access_key: "[YOUR_ACCESS_KEY]",
environment: "[YOUR_ENVIRONMENT]",
private_key: "[YOUR_ENVIRONMENT_PRIVATE_KEY]"}).then(() => {
// The rest of your startup logic
})
Automatically once variables are loaded, you can read from your process.env
const value = process.env["KEY"] // or process.env.KEY
Alternatively, you could reference envdesk directly
const value = Envdesk.store["KEY"] // or Envdesk.store.KEY
const variables = Envdesk.variableStore // Variable[]