middle-injector
v1.0.0
Published
Middle injector is a tool to prepare the app to test middlewares, this tool will set all necesary dependences and variables to the APP on selected framework(Express, etc). It is usefull for test a unitary middleware.
Downloads
3
Maintainers
Readme
Middle-injector
Module to inject dependencies and variables for frameworks that works on NodeJS and middlewares. You could use it to inicialize the app more organiazed or use it on your middleware test. You will spend less code, time and the project is open source.
Install
To install middle-injector you can run the next command:
npm install --save master-tools/middle-injector
Test
If you want to check the test of the project you can run it with the next command:
npm run test
Examples
You can view some examples to know how to use it or give you some ideas of witch cases could do it in the next url documentation:
- https://master-tools.gitbooks.io/middle-injector-examples/content/
Also you can see some examples on the next repository:
- https://github.com/master-tools/middle-injector-examples
Contribute
If you want to contribute, you can do it writing a pull request and following the next rules on your commits:
- https://git-scm.com/book/ch5-2.html
- https://github.com/erlang/otp/wiki/writing-good-commit-messages
- http://chris.beams.io/posts/git-commit/