addict-ioc-nconf

A config provider for the addict-ioc container with nconf

Usage no npm install needed!

<script type="module">
  import addictIocNconf from 'https://cdn.skypack.dev/addict-ioc-nconf';
</script>

README

addict-ioc-nconf

This package serves as a bridge to use nconf as a config provider for addict-ioc.

You just need to provide your instance of the addict-ioc container and nconf to the bridge package and it will automagically do the rest for you.

Usage


const addictIoc = require('addict-ioc');
const nconf = require('nconf');

const container = new addictIoc();

const addictIocNconf = require('addict-ioc-nconf');

addictIocNconf(container, nconf);