mardi 3 mars 2015

How to get multiple instances of module in node.js?

In nodejs modules are singletons. I have created a module that takes configuration object and return some object. But at last I will be having single instance of the module. How to have multiple instances for different configurations?(each time they require, it should be different instance. How to achieve this?)


Aucun commentaire:

Enregistrer un commentaire