npm install betterRequire better for NodeJs
In PROJECT_ROOT/shared/libs/emoji:
``javascript`
module.exports = function() { /.../ }
Old way for use:
`javascript`
var emoji = require('../../../shared/libs/emoji')
> ../../../ is depend on where of your code. Or it will be ../, or it will be ../../.
New way for use:
`javascript`
var emoji = require('better')('shared/libs/emoji')
> Just pass file path as in your project root dir.
`bash`
npm install better --save
Will return full path of filePath`.