🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

hapi-epoxy

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-epoxy

Flexible YAML configuration for Hapi

3.0.0
latest
Source
npm
Version published
Weekly downloads
2
Maintainers
2
Weekly downloads
 
Created
Source

hapi-epoxy

hapi-epoxy is a module designed to extend off of two things that are limited by the current Glue manifest:

  • Overriding by environment variables (Which is currently only possible on the command-line, assuming you are using rejoice)
  • Inability to document the config inside the config file itself (Since JSON doesn't natively support comments)

It is designed to work alongside Glue, generating the object / JSON that Glue normally consumes from a given YAML as follows:

Glue.compose(Epoxy.bond(...), glueOptions, function (err, server) { ...});

Examples of sample formats can be found in the ./test/fixtures/ directory. In particular, the sample-application.yaml file has a decent example of the various forms of plugin configuration and general server setup, with a few examples of Epoxy being used to override values with the local system as desired.

In contrast, sample-application.json is an example Glue manifest for the equivalently-named YAML file, using the default values where the Epoxy tags are used in the YAML.

FAQs

Package last updated on 24 Jan 2018

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