I know that it is highly recommendable to use path.join
if one would like to have his node project Windows compatible.
But do we need to use it also inside require
commands? For example, instead of
const colors = require('colors/safe');
to use
const colors = require(path.join('colors', 'safe'));
The question may be a little silly, but I'm a bit lost after searching the require
node documentation.