How will you get information about a file using node?



How will you get information about a file using node?..

Answer / Smriti Chauhan

You can use the 'fs' (file system) module to get information about a file in Node.js. For example, `fs.stat('filename', function(err, stats) { ... });`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Node.js Interview Questions

What are global installations of dependencies?

1 Answers  


How do node.js works?

1 Answers  


What is template engine?

1 Answers  


Does facebook use server side rendering?

1 Answers  


What are the limitations of node.js?

1 Answers  


Differentiate between node.js vs ajax?

1 Answers  


What is SSL/TLS in node.js?

1 Answers  


Why Node.js application is scalable?

1 Answers  


Which template engine is supported by express js?

1 Answers  


Why is node popular?

1 Answers  


What is npm for?

1 Answers  


What is the use of express js?

1 Answers  


Categories