1.0.8 • Published 8 years ago
@synapse/mininit v1.0.8
1) mininit exposes 2 functions a setter to initialise and begin the configuration builder and a getter function to return the configuration object.
Usage Example:
var mininit = require('@synapse/mininit').initConfig;
var getConfig = require('@synapse/mininit').getConfig;
/ Database Settings Object /
var db = { host: 'localhost', port: 27017, db: 'test' };
mininit(db);
console.log( getConfig() );
2) Placing this at the start of any script will build a config folder (you can change this) in the project root with settings about the project such as path types, OS, rootDir, configDir and configFile.
3) Part of a suite of apps under one umbrella: 'minproject'