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

myconfig

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

myconfig

A simple project configurations.

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
4
33.33%
Maintainers
1
Weekly downloads
 
Created
Source

NPM

myconfig

This module enables you to manage configuration on a single file for multiple projects

Configuration

project file_receiver

{"file_receiver": { "port": 9001, "redisSocket": "/tmp/redis.sock", "maxDirs": -1, "maxFilesInDirs": 300, "fileNamePrefix": "pre_", "backoffTime": 120, "responseCode": 200, "responseText": { "status": "Good day." }, "backoffCode": 503, "backoffText": { "status": "Service Unavailable", "waitTime": 120 }, "logLevel": "notice"

} }

Usage

var config = require('../myconfig').get('file_receiver');

console.log(config)

Output

{ file_receiver: { port: 9001, redisSocket: '/tmp/redis.sock', maxDirs: -1, maxFilesInDirs: 300, fileNamePrefix: 'pre_', backoffTime: 120, responseCode: 200, responseText: { status: 'Good day.' }, backoffCode: 503, backoffText: { status: 'Service Unavailable', waitTime: 120 }, logLevel: 'notice' } }

Keywords

conf

FAQs

Package last updated on 07 Sep 2015

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