In addition to enabling you to read and write files, the fs
module also provides additional functionality for interacting with the file system. For example, you can use it to list files in a directory, to look at file information, and much more. The following sections cover the most common file system tasks that you may need to implement when creating Node.js applications.