package.json is a configuration file, which keeps all the information required to setup and run a Node JS application.
package.json keeps information about all dependencies, scripts, name, description, git information etc.
To generate a package.json file, run the following command in the working directory.
npm initThe above command will prompt for basic information, and then create a package.json file in the same directory.
The package.json file looks like
{
"name": "marketleads",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node index.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"axios": "^0.21.1",
"bcrypt": "^5.0.0",
"cheerio": "^1.0.0-rc.5",
"dotenv": "^8.2.0",
"ejs": "^3.1.5",
"express": "^4.17.1",
"express-session": "^1.17.1",
"method-override": "^3.0.0",
"mongoose": "^5.11.14",
"rss-parser": "^3.11.0"
}
}

0 Comments