Skip to content

A simple module for loading application configuration settings from JSON files.

License

Notifications You must be signed in to change notification settings

AppPress/node-secure-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node Secure Config

Build Status

A simple module for loading application configuration settings from JSON files. Default settings are loaded and then merged with environment specific settings. Environment settings override defaults. Settings are stored as JSON as plain text .json or encrypted .store.

Example Usage

var path = require("path");
var homePath = process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE;
var keyPath = path.join(homePath, ".app-press", "secure-store.pem");

var config = require("secure-config")({
  keyPath: keyPath
});

var cbConn = db.createConnection(confg.db.connectionString, config.db.options, function (err) {
  ...
});

License

View the LICENSE file.

About

A simple module for loading application configuration settings from JSON files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published