I am learning for node.js and i came across this way to split my server file into different files so its better maintainable.
The problem is, i have looked at all these old ways to split the files into several files. e.g.: How to split monolithic node.js javascript
Divide Node App in different files
How to split a single Node.js file into separate modules
How to split Node.js files in several files
but all these methods do not work anymore, they are outdated. and now i am trying to find a way that we can split files now. Which isnt here.. nor its in google. I am looking for it for over an hour now and i cannot find the right way to do this..