0.0.8 • Published 11 years ago

zero-configure v0.0.8

Weekly downloads
29
License
-
Repository
-
Last release
11 years ago

zero-configure

This module allow you use a config.json file to overwrite module's config which declared the dependency of this module.

Usage

  1. Add dependency to your module package.json file like:
{
	"name" : "YOUR_MODULE_NAME",
	"zero" : {
		"dependencies" : {
			"configure" : "^0.0.1"
		}
	}
}
  1. Declare config in module.exports like:
module.exports = {
	config : {
       'allowSomething' : true
    }
}

If you have a global config file in root of application, and it looks like:

{
	"THIS_MODULE_NAME" : {
		'allowSomething' : false
	}
}

Then it will overwrite the config's allowSomething in this module.

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.1

11 years ago