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

@webgap/configuration

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webgap/configuration

WebGAP configurations module. Contains the base Configurations Schema for all webgap components.

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

WebGAP Configuration

Build Status Test Coverage Code Climate Dependency Status

NPM version NPM downloads

README

This is the base configurations module for WebGAP. Contains base configurations Schema for all WebGAP components.

Dependencies

Handles configurations using node-convict.

Requirements

This module uses 2 environment variables. Only environment variables, no options parameters, are used in order to make sure the configurations and configurations schema is loaded once and only once (Caching Caveats).

The module loads a configuration JSON file:

NODE_APP_CONF - Full path to the configuration file 

The module holds a default schema for configurations used by WebGAP. If you want to use your own, it can be overridden using the following environment variable:

NODE_APP_CONF_SCHEMA - Full path of an alternative configurations schema

API

Installation

npm install @webgap/configuration --save

Usage

var configuration = require('@webgap/configuration');
...
var tokenSecret = configuration.get('GENERAL.TOKEN.SECRET');
...

Schema

Check the file configurations-schema.json for schema definition.

License

Apache License, Version 2.0

Keywords

FAQs

Package last updated on 11 Dec 2015

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