DEV Community

Discussion on: Automate file renaming with Node.js scripts

Collapse
yonaikerlol profile image
Leober Ramos

The "fs" library does not have to be installed, it is part of the Node API, just requiring it in your JavaScript file and executing it with Node is all. In fact you don't need a package.json either, just the JavaScript file.

Collapse
emma profile image
Emma Goto 🍙 Author

Ah, thanks for that! I'll keep in the part about the package.json (since I think that can still be useful) but will also add the instructions to run it directly :)