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

secure-config

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

secure-config

Configure node apps with plain and encrypted JSON files

  • 0.0.1-3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
Maintainers
2
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 21 May 2013

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