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

nconf-transforms

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nconf-transforms - npm Package Compare versions

Comparing version 0.0.5 to 0.1.0

5

index.js

@@ -10,5 +10,6 @@ var config = require('nconf');

options.fileName = options.fileName || 'settings';
options.environment = options.environment || process.env['NODE_ENV'];
var envConfig = options.dir + '/' + options.fileName + '.' + options.environment + '.json';
var envConfig = options.dir + '/' + options.fileName + '.' + process.env['NODE_ENV'] + '.json';
// if there is a settings.[NODE_ENV].json file (e.g settings.production.json file), load that too.

@@ -15,0 +16,0 @@ if(glob.sync(envConfig).length > 0){

2

package.json
{
"name": "nconf-transforms",
"version": "0.0.5",
"version": "0.1.0",
"description": "web.config like transforms for nconf",

@@ -5,0 +5,0 @@ "repository": "https://github.com/e-r-w/nconf-transforms",

# nconf-transforms
Similar to .NET web.config transforms, nconf-transforms allows you to load nconf configuration files based on convention.
Reads the `NODE_ENV` environment variable to select what config file to transform. Currently only supports JSON format.
By default reads the `NODE_ENV` environment variable to select what config file to transform. Currently only supports JSON format.

@@ -54,3 +54,4 @@ ## Usage

- reload: Boolean. Toggles reloading of configuration when the base config changes.
- environment: String. The environment to transform to. Defaults to `process.env['NODE_ENV']`
Returns the `nconf` object so you can chain loading other configuration types/files.
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