New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

config.hkube

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

config.hkube

configuration management for node

  • 2.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

config.hkube

Build Status Coverage Status

Installation

$ npm install ../config-it

Quick Start

option 1: environment create config..js file (e.g. production/development/lab) require the module:

const configIt = require('config-it');
const config = configIt.load();

run your app with desired environment: NODE_ENV= node app.js note: the default environment is development

option 2: inheritance create config.base.js file

const configIt = require('config-it')
const config = configIt.load();

now the environment config file will inherit from the base file and merge the configs

Features

  • Environment based
  • Inheritance

Viewing Examples

// config.base.js file
const config = module.exports = {};
config.settings = {
    port: 1500
};

// config.<environment>.js file
const config = module.exports = {};
config.settings = {
    host: "127.0.0.1"
};

// the result will be:
config.settings = {
    host: "127.0.0.1",
    port: 1500
};

Running Tests

see test.js file

Contributors

Created by Nassi on 16/11/15.

License

RMS

Keywords

FAQs

Package last updated on 12 Jun 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

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