ericelliott

ericelliott/rootrequire

npm install --save rootrequire # then `var root = require('rootrequire'), myLib = require(root + '/path/to/lib.js');`

JavaScript
18
1
MIT License

RootRequire is a Node.js utility that simplifies requiring files by allowing developers to reference paths relative to the project root, making file organization and refactoring easier. It's ideal for JavaScript developers who want cleaner, more maintainable code and better documentation of their app's directory structure. The project is now deprecated in favor of ES6 modules.

Total donated
Undistributed
Share with your subscribers: