I have grown tired of having lots of ../
in my require paths... so i took matters into my own hands!
Lets say you have a require like this one require('../../../conf')
, if you move the file, it will break.
The following JS code addes >
as a short cut to where app.js(or what ever the entry file is) so now you can get a clean
require that looks like this require('>/conf')
and is valid anywhere in your project!