Config Files · 1 file

Sample package.json File

package.json is the manifest for Node.js and npm packages. Our sample is realistic and valid for its tool, with fake hosts and secrets.

package.json · 626 B

package.json

An npm package.json with scripts, dependencies, devDependencies, engines, exports and a files list. All hosts, keys and secrets are fake.

CC0 · free for any use · Verified by an independent tool · Report a problem

package.json — first linesJSON
{
  "name": "@example/sample-app",
  "version": "1.4.2",
  "description": "Sample package.json from samplefiles.com",
  "license": "CC0-1.0",
  "type": "module",
  "main": "./dist/index.js",
  "exports": {
    ".": "./dist/index.js",
    "./package.json": "./package.json"
  },
  "files": ["dist"],
  "engines": { "node": ">=20" },
  "scripts": {
    "dev": "vite",
    "build": "tsc && vite build",
    "test": "vitest run",
    "lint": "eslint ."
  },
  "dependencies": {
    "zod": "^3.23.8"
  },
  "devDependencies": {
    "eslint": "^9.9.0",
    "typescript": "^5.5.4",

File details

Size
626 B (626 bytes)
MIME type
application/json
SHA-256
f5bd50ffdc3f3b58553e4ff28e0ca922174275b286350691381be2880265ddef
MD5
ad86efe99da541585335b090a8dd5607

Download from the command line

curl -L -o package.json https://files.samplefiles.com/config/package-json/package.json

Or check the download in your browser with the checksum calculator.