How to use the bottlejs.config function in bottlejs

To help you get started, we’ve selected a few bottlejs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vend / ecs-cleaner / src / deps.js View on Github external
export default (config) => {
  const deps = new Bottle();
  Bottle.config.strict = true;

  deps.constant('config', config);
  deps.service('cli.log', () => log);

  deps.service('api', api, 'config', 'aws.ecs', 'aws.ecr');

  deps.service('aws.ecs', awsEcs, 'config');
  deps.service('aws.ecr', awsEcr, 'config');
  deps.service('aws.ec2', awsEc2, 'config');

  /**
   * @param {string} name
   * @param {cli.command} instance
   * @param {Array.} extraServices
   * @returns {string}
   */

bottlejs

A powerful dependency injection micro container

MIT
Latest version published 2 years ago

Package Health Score

53 / 100
Full package analysis

Popular bottlejs functions