hey is it possible to define a module.export with a pretty name like require('my_module')
that would help because i don't have to figure out all the '../../'
i would have to use to get there.
In my case its about the instance of my i18n helper. I want to do somethink like:
# (module.coffee)
Polyglot = require("node-polyglot")
i18n = new Polyglot()
module.exports = i18n
# ------------
#(view.coffee)
i18n = require('i18n')
i18n.t('my.path.string')
as you see the moudle.coffee is very short and returns an instance of Polyglot class. I don't what to create my own npm_package for this.
I'm just starting out with this hole CommonJS thing, so this could be a pointless question.