I want to start my index.js file with node --max-old-space-size=1024 index.js
but I don't want to type the command manually everytime, any Idea how can I make a .js
file that executes the command for me? Like start.js
and when I launch it, it immediately runs node --max-old-space-size=1024 index.js
. This might be super straight forward but I'm still new to node.js