| How do we get information about a file in Node.js?
Well we say about the file in Node.js, we use fs module methods to work with the files systems. And to get information about a files we can use method fs.stat(). And this fs.stat() methods will returns and object that will contains information about the file just like file size, modified date and the creation date. | | |