Which file is created by default when you run the npm init command in a Node.js project?
- package.json
- index.js
- node_modules
- app.js
When you run npm init in a Node.js project, it creates a package.json file by default. This file is used to manage project dependencies, scripts, and other project-related information. The other options are not created by npm init itself.
Loading...
Related Quiz
- What type of files are generally served as static files in Express.js?
- Which fs method would you use to read the contents of a directory?
- You are tasked with developing a real-time notification system in Node.js. Which feature of the Events module would be most beneficial in implementing this?
- Which of the following is true regarding buffer instances in Node.js?
- Your application allows users to upload and share documents. You need to implement a solution to scan uploaded documents for malicious content. What considerations and strategies would you employ to ensure the security of the uploaded files?