require-project
v1.0.1
Published
A wrapper for require() that allows loading of modules by name from a folder in the user's home folder.
Downloads
3
Readme
This module is a simple addition to require() that allows for loading from a user's home path.
To use, simply add this to the top of the file:
require = require('require-project')(require);
Example:
require('Project:LibTest') => /Users/User/Projects/LibTest
All other strings not prefixed by "Project:" are sent to require() as-is.