Skip to content

Ambeeance/loader

Repository files navigation

ambeeance-loader

Attempt to load ambeeance client gracefully

package.json

{
  //...
  "dependencies": {
    "ambeeance-loader": "1.0.0"
  },
  "devDependencies": {
    "ambeeance-client": "x.y.z"
  }
}

your_app.js

const { ambeeance } = require("ambeeance-loader")(require);
const config = ambeeance(loadConfig());

ambeeance-client will only be required if the environment is not production and AMBEEANCE=ENABLED is set in your environment.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published