Node.js — How to Rename a File
Node.js ships with a file system module allowing you to interact with files on the local hard disk. The file system module fs provides two methods allowing you to rename files: Fs#rename and Fs#renameSync. This tutorial shows you how to rename a file synchronously and asynchronously using …
Continue Reading