1.1.0 • Published 7 years ago

vrequire v1.1.0

Weekly downloads
9
License
-
Repository
-
Last release
7 years ago

Dependencies require in shorthand

Install

  • npm i vrequire --save

How to use?

  • create config/rq.json
{
	"utils": "app/lib/utils",
	"others": "from/root/dir/to/a/very/very/very/very/deep/path/to/your/module"
}
  • And in your module
var rq = require('vrequire'),
	utils = rq('utils'),
	others = rq('others');