A typescript systemic configcat component.
const System = require('systemic')
const configCat = require('@infinitaslearning/systemic-configcat')
new System()
.configure({
configCat: {
key: 'YOUR-CONFIGCAT-KEY'
}
})
.add('configCat', configCat())
.dependsOn('config')
.start((err, components) => {
// Do stuff with components.configCat
})
- key your configCat key
const system = require('./system')
const { configCatMock } = require('@infinitaslearning/systemic-configcat')
system().set('configCat', configCatMock())
V 2
- Use configcat-node version 9
V 3
- Use configcat-node version 11