/j.require

Primary LanguageJavaScript

j.require

A require statement that takes a path beginning from the root of your directory. The root is defined as where your node_modules folder is.


Installation

  npm install j.require

Example Directory

YourApp/
--ROOT
--node_modules/
--utils/
----NOT ROOT
----coolUtil.js
--server/
----server.js
--index.js
--package.json
--README.md


Example Usage:

  // server/server.js

  var j = require('j.require');
  var coolUtil = j.require('utils/coolUtil');