require-project

1.0.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i require-project

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • richinfante