Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

auto-config

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auto-config

Automatic config loader

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

auto-config

Automatic configuration library (and environment handler) for node.js

Install

npm i auto-config

Usage

// Require Module
var config = require('auto-config');

// Pass strings to be joined
config.init(__dirname, "/config");

// OR pass single string.
var __location = path.join(__dirname, "/config");
config.init(__location);

If second string is not passed, auto-config will assume that the first string is the definitive pathway

Object support will come further down the line for passing additional settings such as mysql auto login

Result

The modules inside the given config folder will be added to the config object with their name, (".*" extension omitted)

FAQs

Package last updated on 07 Jul 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