0.0.8 • Published 9 years ago

zero-configure v0.0.8

Weekly downloads
29
License
-
Repository
-
Last release
9 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

9 years ago

0.0.7

9 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.1

10 years ago