Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    secure-configpublic

    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.

    install

    npm i secure-config

    Downloadsweekly downloads

    8

    version

    0.0.1-3

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators