New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

loadjsonconfig

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loadjsonconfig

### first step

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

Wiki

first step

var loadjsonconfig = require('loadjsonconfig');

second step


var configKey = {
    filename    :   ["key1", "key2" ,"key3",,,,]
    ,,,
};

var configDir = __dirname + '/config/';

var configManager = new loadjsonconfig({configKey : configKey, configDir :  configDir});

Useage


//get one object by key name and value
var obj = configManager.getObjByKey('configName','keyName',keyValue);

//get objects by key name and value
var objs = configManager.getObjArrayByKey('configName', 'keyName', keyValue);

//get obj by two keys name and values
var obj = configManager.getObjFromArrayByKey('configName','keyName1',keyValue1,'keyName2',keyValue2);

Keywords

cofig

FAQs

Package last updated on 19 Aug 2016

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