auto-config

0.1.0 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i auto-config

Weekly Downloads

2

Version

0.1.0

License

LGLP3

Last publish

Collaborators

  • henchman