1.0.7 • Published 3 years ago

envdesk v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

EnvDesk

One stop solution to Key 🗝 management! This is the official EnvDesk SDK for javascript.

Getting Started

Create your free account and generate relevant keys at Envdesk. For detailed steps follow this tutorial

Installation

$ npm install envdesk

Usage

Having generating your application access_key and environment

Loading Remote Variables

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
})

Reading Variables

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

Referencing Variable data

const variables = Envdesk.variableStore // Variable[]
1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago