How to reduce your node repls size by 99% with one line of code!
ironblockhd

do not use this in combination of the hidden files tutorial

So you may be aware that nodejs repls are loaded faster than python repls since python modules need to be downloaded on any start while nodejs modules are being stored. This comes with the disadvantage of nodejs repls using a lot more storage. If you don't want that, this tutorial will explain you how to make your projects use less storage

The tutorial bruh
1. create a .replit file
2. paste run="node&sleep 5;cp -r node_modules ..;rm -rf node_modules; mv package-lock.json ..; mv package.json ..;node index.js"
3. done

Or use this bash command:
echo 'run="node&sleep 5;cp -r node_modules ..;rm -rf node_modules; mv package-lock.json ..; mv package.json ..;node index.js"' > .replit

Let me know if i should make a tutorial on how to speed up python repls

You are viewing a single comment. View All
Highwayman

Lol it was just funny because in my mind I can totally see someone be like

Want to learn Zstandard??!?
Go to my tutorial NOW at BLAHBLAHLINK.com!!

After that comment cause like it’s just perfect setup lol
@CodeLongAndPros