S
S
SpideR-KOSS2018-09-08 16:34:16
Node.js
SpideR-KOSS, 2018-09-08 16:34:16

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 question

Ask a Question

731 491 924 answers to any question