Require to both way of relatively and absolutely.
both-require was born for solving require hell as you can see below.
const moduleA = require('../../../../moduleA');
and then you can use relative path, additionally. because of support both way path.
npm install both-require --save
const use = require('both-require');
const moduleA = use('moduleA');
const use = require('both-require');
const moduleB = use('./moduleB'); //It's the same to pure require.
If used both-require, able to split code of require public module & private module, intuitively.
const use = require('both-require');
const pubModule = require('pubModule');
const priModule = use('priModule');
This project has MIT License.