Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

configuration-master

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

configuration-master - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

README.md

12

index.js

@@ -5,3 +5,3 @@ const _ = require('lodash');

const myConfig = {};
const COMMON_KEY = "Unique key not likely used by any other configurations";
const COMMON_KEY = "__COMMON";
const myMap = {

@@ -42,5 +42,7 @@ "process.stdout": process.stdout,

class config
function config()
{
loadConfig(filename, namespace)
this.direct = myConfig;
this.loadConfig = function(filename, namespace)
{

@@ -51,3 +53,3 @@ let tmp = require(filename);

setConfig(jsonObject, namespace)
this.setConfig = function(jsonObject, namespace)
{

@@ -58,3 +60,3 @@ jsonObject = _processConfig(jsonObject);

getValue(key, namespace)
this.getValue = function(key, namespace)
{

@@ -61,0 +63,0 @@

{
"name": "configuration-master",
"version": "0.0.1",
"version": "0.0.2",
"description": "Simple configuration load/access tool.",

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

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