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

cz

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cz - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

2

config.json

@@ -6,4 +6,4 @@ {

"db": {
"host": "localhost"
"host": "red"
}
}

@@ -106,3 +106,19 @@ 'use strict';

});
},
env: function(){
// @TODO
},
defaults: function(obj, save){
for (let a in obj) {
if(obj.hasOwnProperty(a)){
config[a] = obj[a];
}
}
if(save){
module.exports.save();
}
},
save: function(){
fs.writeFileSync(currentPath, JSON.stringify(config, null, 4) + '\n', 'utf8');
}
};
{
"name": "cz",
"version": "1.2.0",
"version": "1.3.0",
"description": "A simple config utility for nodejs",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,4 +5,11 @@ 'use strict';

config.load(__dirname + '/config.json');
config.defaults({
db: {
host: 'localhost'
}
});
config.args(true);
// console.log(config.get());
console.log(config.get());
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