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