0.1.0 • Published 9 years ago

auto-config v0.1.0

Weekly downloads
3
License
LGLP3
Repository
github
Last release
9 years ago

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)