DEV Community

Discussion on: Side Project: Wrote A Node Program That Can Write A Bash Script To Your Computer (Mac/Linux maybe Windows???)

 
jimmymcbride profile image
Jimmy McBride

I left them in because if I do, you don't have to npm install or yarn install. If I added node_modules/ to my .gitignore file. If I did a .gitignore with my node modules then you would have to npm install or yarn install to run node index.js. It just takes a step out of the equation. Figured it would be a little more user-friendly if you don't have to worry about the yarn/npm install.

If I had even a couple more node_modules I would have just added the .gitignore, but I only have node_modules for a single, light library.