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
{
"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
Download from the command line
curl -L -o package.json https://files.samplefiles.com/config/package-json/package.jsonwget https://files.samplefiles.com/config/package-json/package.jsonhttps://files.samplefiles.com/config/package-json/package.jsonprintf '%s %s\n' f5bd50ffdc3f3b58553e4ff28e0ca922174275b286350691381be2880265ddef package.json | shasum -a 256 -cOr check the download in your browser with the checksum calculator.