1.0.8 • Published 9 years ago

@synapse/mininit v1.0.8

Weekly downloads
1
License
MIT
Repository
-
Last release
9 years ago

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'

1.0.8

9 years ago

1.0.7

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago