consign-ignore0.1.4 • Public • Published
Autoload your scripts! the successor to
Consign makes applications easier to develop with logical file separation and automatic script loading.
Consign can be used to autoload models, routes, schemas, configs, controllers, object maps... etc...
Also if you are writing scripts and just need to add some structure, check out (middleware-chain)[https://github.com/jarradseers/middleware-chain], there is a new example for this usage in the examples folder.
var consign = ;;// app.models.user// app.models.company// app.controllers.user// app.controllers.company
$ npm install consign
- Autoload scripts
- Supports order, includes and excludes
- Made to supplement frameworks or scripts
- Makes MVC applications easier to work with
- Test driven
- Fast, Light-weight with no external dependencies
- Highly configurable
The optional options object is passed in as a parameter to the main
logger - Defaults to console, this can be switched out.
verbose - On by default, set to
false for no logging
loggingType - Set the type of logging, defaults to
Current supported locale (for logging output):
Base Directory (cwd)
Consign will simply use a relative path from your current working directory, however sometimes you don't want heavily nested files included in the object chain, so you can set the cwd:
would result in:
so using the
would give us:
Defaults to an array containing
.node, new ones are concatenated instead of replaced.
Use a string or a RegExp in the
To run the test suite, first install the dependencies, then run
$ npm install$ npm test