Hi, I'm programming a module for nodejs
that is installed through npm
, everything works great, the code, the installation, everything as it has to be etc ..., my concern is that to use other modules it is not necessary to add the .js when doing require
for example:
cons paquete = require('paquete')
instead of mine, if I do not put .js to the name of the package, it tells me that it can not be found, so I have to call it like this:
cons mipaquete = require('mipaquete.js')
Any idea why this happens and how can I solve it?