Skip to main content
DevTools24

package.json Builder

Build package.json files visually. Add scripts, dependencies, and metadata for your Node.js projects.

No dependencies added

{
  "name": "my-project",
  "version": "1.0.0",
  "main": "index.js",
  "scripts": {
    "start": "node index.js",
    "test": "jest",
    "build": "tsc"
  },
  "license": "MIT",
  "devDependencies": {
    "typescript": "^5.0.0"
  }
}

package.json - Technical Details

package.json is the manifest file for Node.js projects. It defines project metadata, dependencies, scripts, and configuration. It's required for npm and yarn package management.

Command-line Alternative

# Initialize package.json interactively\nnpm init\n\n# Or with defaults\nnpm init -y\n\n# Add dependencies\nnpm install express --save\nnpm install jest --save-dev

Reference

View Official Specification