1.0.0 • Published 3 years ago

ambeeance-loader v1.0.0

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

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.