I've got a folder in my node.js project that contains multiple files, which I'd like to execute via a script. The names of the files are numbers just like '001.js', '002.js' and the script is meant to execute them in that order (from small to big) one after the other (asynchronous).
Unfortunately I can't really figure out a way to get this done the easy way. Currently I'm importing all files into the script and execute them one after the other but I know that this isn't sustainable and kinda ridiculous...
Is there an easier way to achieve this result via a lean script?