app-module-path-node icon indicating copy to clipboard operation
app-module-path-node copied to clipboard

How about variables in paths?

Open rauschma opened this issue 8 years ago • 0 comments

How about configuring variables and using them in paths? That would be less dynamic and therefore has more of a chance of working in client-side settings, too. For example:

require('app-module-path').setVar('ROOT', __dirname);

var foo = require('$ROOT/src/foo');

rauschma avatar May 01 '17 02:05 rauschma