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.
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 :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.
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 :)