What is FS node?
node-fs is an extension to the original nodejs fs library, offering new functionalities. See example.js for an example of how to use it.
What is Node JS?
How do I read files in Node.js?
The simplest way to read a file in Node.js is to use the fs.readFile () method, passing it the file path, encoding and a callback function that will be called with the file data (and the error): Alternatively, you can use the synchronous version fs.readFileSync ():