New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

confee

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

confee

A NodeJS config object with enviroments support

latest
Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
5
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

node-config

About

This is a simple module to easily manage configurations for NodeJS applications. You can extend configurations, so it's easy to override other configurations from a base file for example

Usage:

const config = require('node-config');

config.init({
  srcFolder:'./config', // path to config files
  type: 'js'  // or 'json'
});

// load config.
const configObj = config.load('myconfig');

// access data from the config object
configObj.get('site.email');
configObj.get('email.smtp.username');

Config files can extend other config files:

base.js:

module.exports = {
  version: '1.2.4',
  name: 'foo'
};

development.js:

module.exports = {
  extends: 'base',
  name: 'bar'
};

Keywords

config

FAQs

Package last updated on 06 Nov 2016

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