where to require a file used in controller or router, at the top scope (require it into a variable and then use that variable) or locally where it is being used?
Any advice with using require in Express files, eg where to require a file used in controller or router, at the top scope (require it into a variable and then use that variable) or locally where it is being used (just require it where used as opposed to other method)?
No any search results
You already invited:
1 Answers
Floroz
Upvotes from: