ambeeance-loader

1.0.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i ambeeance-loader

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.96 kB

Total Files

12

Last publish

Collaborators

  • sleepypikachu