1.0.8 • Published 8 years ago

@synapse/mininit v1.0.8

Weekly downloads
1
License
MIT
Repository
-
Last release
8 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

8 years ago

1.0.7

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago