Generatore package.json
Genera package.json.
echo '{}' > package.json
# Then paste generated content, or:
npm init -y
package.json - Dettagli tecnici
package.json is the manifest file for Node.js projects. It contains project metadata, scripts for automation, dependencies, and configuration. Required fields are name and version. Common scripts include start, build, test, and dev.
Alternativa da riga di comando
# Initialize package.json\nnpm init -y\n\n# Add dependencies\nnpm install express\nnpm install -D typescript