Answer the question
In order to leave comments, you need to log in
Including files in NodeJS instead of module.exports?
I want to make a normal project structure in NodeJS.
Transfer authorization to one file, registrations to another, validation to a third, and so on.
With module.exports , this is terribly inconvenient, as for me.
Maybe there is a more elegant solution so that you can just import the file into app.js and everything works?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question