🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@qrvey/qrveyconfig

Package Overview
Dependencies
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qrvey/qrveyconfig

Config package for QRVEY apps

latest
npmnpm
Version
1.1.8
Version published
Maintainers
4
Created
Source

Resumen

Package to manage the config files into the datarouter project or other projects.

Getting Started

qrveyconfig is a package that allows you to manage the config files of the datarouter applications and other applications that are required, allowing you to store these configuration files in other sources such as AWS.S3 and AWS.DynamoDB.

Installation

$ npm install --save @qrvey/qrveyconfig

Usage

var MyQConfig = require('@qrvey/qrveyconfig');

AWS.S3 usage

If your config file is in AWS.S3 use the follow definition, using a object with three fields, "type": type of the config(S3 or DynamoDB), "bucketName": Name of the bucket where the file is upload and "file": Name of the file in the bucket in json format.

var s3Config = {
    type: "S3",
    bucketName: "<bucketName>",
    file: "<fileName.json>"
};
var myConfig = new MyQConfig.qconfig(s3Config);

AWS.DynamoDB usage

If your config file is in AWS.DynamoDB use the follow definition, using a object with four fields, "type": type of the config(S3 or DynamoDB), "table": Name of the table where the config is stored, "key" is the identification of the unique row where is the config. and "region": is the region of the dynamodb.

If your config file is in AWS.DynamoDB use the follow definition

var dynamoDBConfig={
    type: "dynamodb",
    table: "<tableDynamoDB>",
    key: "<keyRow>",
    region: "<region>"
};
var myConfig = new MyQConfig.qconfig(dynamoDBConfig);

Get key

To return values from the config file you must use the 'getValueKey' method.

var myValue = myConfig.getValueKey('myKey');

FAQs

Package last updated on 22 Mar 2018

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