@lemonldap-ng/conf
@lemonldap-ng/conf is the configuration accessor.
Synopsis
import Conf from '@lemonldap-ng/conf'
import {LocalConf} from '@lemonldap-ng/types'
const minimalConf: LocalConf = {
confFile: '/path/to/lemonldap-ng.ini'
}
const confAccessor = new Conf(localConf)
const localConf = confAccessor.getLocalConf('node-handler')
confAccessor.getConf().then ( (conf: LLNG_Conf) => {
}).catch( e => {
throw new Error(e)
})
@lemonldap-ng/conf is a component of lemonldap-ng-handler,
a Node.js handler for LemonLDAP::NG WebSSO.