← All datasets
📦

package.json Template JSON Dataset

Configuration · ~10 sections

Full package.json template with scripts, dependencies, lint-staged, husky, and engines fields. Free to use, no attribution required — copy it, download it, or open it directly in the JSON Formatter. Runs entirely in your browser.

#npm#package#node#config

Fields

namestring
versionstring
descriptionstring
privateboolean
scriptsobject
dependenciesobject
devDependenciesobject
lint-stagedobject
enginesobject
licensestring

Common uses

  • Bootstrapping new projects
  • Standardizing config across a team
  • CI/CD pipeline setup
  • Editor and tooling defaults
{
  "name": "my-app",
  "version": "1.0.0",
  "description": "A sample Node.js application",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "eslint . --ext .ts,.tsx",
    "lint:fix": "eslint . --ext .ts,.tsx --fix",
    "format": "prettier --write .",
    "format:check": "prettier --check .",
    "type-check": "tsc --noEmit",
    "test": "jest --passWithNoTests",
    "test:watch": "jest --watch",
    "test:coverage": "jest --coverage",
    "prepare": "husky install"
  },
  "dependencies": {
    "next": "^14.0.0",
    "react": "^18.2.0",
    "react-dom": "^18.2.0"
  },
  "devDependencies": {
    "@types/node": "^20.0.0",
    "@types/react": "^18.2.0",
    "@types/react-dom": "^18.2.0",
    "@typescript-eslint/eslint-plugin": "^6.0.0",
    "@typescript-eslint/parser": "^6.0.0",
    "eslint": "^8.0.0",
    "eslint-config-next": "^14.0.0",
    "eslint-config-prettier": "^9.0.0",
    "husky": "^8.0.0",
    "jest": "^29.0.0",
    "lint-staged": "^15.0.0",
    "prettier": "^3.0.0",
    "typescript": "^5.0.0"
  },
  "lint-staged": {
    "*.{ts,tsx}": [
      "eslint --fix",
      "prettier --write"
    ],
    "*.{json,md,css}": [
      "prettier --write"
    ]
  },
  "engines": {
    "node": ">=18.0.0",
    "npm": ">=9.0.0"
  },
  "license": "MIT"
}

Related datasets

⚙️ TypeScript Config Prettier Config🔍 ESLint Config

Related tools

JSON FormatterJSON DiffJSON to TypeScript