'rekuire' is basically node's 'require' without the relative paths
to install, type
npm install rekuire
or add it to your package.json
as a dependency.
instead of doing this:
var MyModule = require('../../../MyModule.js');
<-- yuck!
why not do this:
var rek = require('rekuire');
var MyModule = rek('MyModule.js');
if you want to resolve only the file location, for example, when you want to use proxyquire.
use:
var mypath = rek.path('MyModule');
// mypath = 'lib/classes/MyModule.js'
it saves you TONS of time refactoring your code, and making it easily reusable. plus, it makes you code more readable = better!
if you are having any problems, requests or critisizm, don't hesitate to open an issue, here
- - -
when 'rekuire' is first loaded to the project, it scans the *.js files, then, when you need them they are right there to use! no relative paths are needed! yeahy!
- - -
To test, run: npm test