New:Socket for Asana Is Now Available.Learn more
Get Started

container-var

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

container-var

To normalize environment variables provided to nodejs environment process.env by cloud containers

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
3
50%
Maintainers
1
Weekly downloads
 
Created
Source

Container-var

To normalize the environment variable differences that cloud containers provide to a nodejs environment

Purpose

To be able to write the same app and it would work without breaking on different cloud container environments like Openshit, Amazon Web Service, Heroku etc.

Philosophy

When a web application is built, it makes use of the environment provided to do adequate logging and other stuffs. Cloud containers provides this basic properties with but with different namings in their environment. Therefore, container variables is job is to allow an application to be portable across different container environment variables, parsing them and retriving necessary content without altering the process.env object

How to

$ npm install container-var 
// returns a function
var config = require('./container-var');

Keywords

process

FAQs

Package last updated on 28 Jun 2016

Related posts