Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lemonldap-ng/conf

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lemonldap-ng/conf

LemonLDAP::NG configuration loader

  • 0.6.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@lemonldap-ng/conf

@lemonldap-ng/conf is the configuration accessor.

Synopsis

import Conf from '@lemonldap-ng/conf'
import {LocalConf} from '@lemonldap-ng/types' // typescript only

const minimalConf: LocalConf = {
  confFile: '/path/to/lemonldap-ng.ini' // default to /etc/lemonldap-ng/lemonldap-ng.ini
}

const confAccessor = new Conf(localConf)

// read a lemonldap-ng.ini section
const localConf = confAccessor.getLocalConf('node-handler')

// get configuration from LemonLDAP::NG database
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.

Keywords

FAQs

Package last updated on 20 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc