{"_id":"@amrendrasharma/deployguard","_rev":"5-d5fde258d43996da0152cdf722d02d7e","name":"@amrendrasharma/deployguard","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@amrendrasharma/deployguard","version":"1.0.0","keywords":["cli","deployment","production","checker","devtools","shipcheck","pre-deploy","code-quality"],"author":{"name":"Amrendra Sharma","email":"amrendrasharma1328@gmail.com"},"license":"MIT","_id":"@amrendrasharma/deployguard@1.0.0","maintainers":[{"name":"amrendrasharma","email":"amrendrasharma1328@gmail.com"}],"homepage":"https://github.com/amrendrasharma1328-a11y/shipcheck#readme","bugs":{"url":"https://github.com/amrendrasharma1328-a11y/shipcheck/issues"},"bin":{"deployguard":"bin/cli.js"},"dist":{"shasum":"261c5b4296f75a5fc38e4ccb2106640eef7018c2","tarball":"https://registry.npmjs.org/@amrendrasharma/deployguard/-/deployguard-1.0.0.tgz","fileCount":10,"integrity":"sha512-zIJc3i8if7Aff6aMwjuybwRD8Loe1m2CmcJrY703Jl6e4I2qWyVCnefWAaY+KdICEliIn98tTNcmgBUfhn+H7Q==","signatures":[{"sig":"MEQCIEYLISQ9Km3MVRQ8ZQI/FTCTmHUOEvOOLCgodzyipfH2AiB062AlrFapHMu5OtK5oILNjn5Rz1guQODI6VzcWEL6NQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45689},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"07ca4e54d60dbdae75032d600632cf4c112cbf1b","scripts":{"dev":"node bin/cli.js --debug","lint":"node bin/cli.js","test":"node bin/cli.js","start":"node bin/cli.js"},"_npmUser":{"name":"amrendrasharma","email":"amrendrasharma1328@gmail.com"},"repository":{"url":"git+https://github.com/amrendrasharma1328-a11y/shipcheck.git","type":"git"},"_npmVersion":"11.6.2","description":"🚀 A lightweight CLI tool that scans your project before deployment and detects common production issues.","directories":{},"_nodeVersion":"24.11.1","dependencies":{"ora":"^5.4.1","glob":"^8.1.0","chalk":"^4.1.2","commander":"^11.1.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/deployguard_1.0.0_1779956981162_0.2876702228973569","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@amrendrasharma/deployguard","version":"1.0.1","keywords":["cli","deployment","production","checker","devtools","shipcheck","pre-deploy","code-quality"],"author":{"name":"Amrendra Sharma","email":"amrendrasharma1328@gmail.com"},"license":"MIT","_id":"@amrendrasharma/deployguard@1.0.1","maintainers":[{"name":"amrendrasharma","email":"amrendrasharma1328@gmail.com"}],"homepage":"https://github.com/amrendrasharma1328-a11y/shipcheck#readme","bugs":{"url":"https://github.com/amrendrasharma1328-a11y/shipcheck/issues"},"bin":{"deployguard":"bin/cli.js"},"dist":{"shasum":"de0d2550e8ee681533fe3db3716671cc933d9ec7","tarball":"https://registry.npmjs.org/@amrendrasharma/deployguard/-/deployguard-1.0.1.tgz","fileCount":10,"integrity":"sha512-vScZuIe4BMdDFgIgT4+ZIFKmr+gCEOtxv3x2/YfYAcRtmn8Vx8Cf1dM+lYEOaBmMa0zRZkK0mf7DAAo9J7wWng==","signatures":[{"sig":"MEQCIGfoU1iuT3qV1ep/yE+2wBQNv1gH9Bd8POCMZ9HKdmwyAiAy8gwExL9Qjqk+8cW/34pqSWvcf4Py1B5nR5YR7CFlOA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45689},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"07ca4e54d60dbdae75032d600632cf4c112cbf1b","scripts":{"dev":"node bin/cli.js --debug","lint":"node bin/cli.js","test":"node bin/cli.js","start":"node bin/cli.js"},"_npmUser":{"name":"amrendrasharma","email":"amrendrasharma1328@gmail.com"},"repository":{"url":"git+https://github.com/amrendrasharma1328-a11y/shipcheck.git","type":"git"},"_npmVersion":"11.6.2","description":"🚀 A lightweight CLI tool that scans your project before deployment and detects common production issues.","directories":{},"_nodeVersion":"24.11.1","dependencies":{"ora":"^5.4.1","glob":"^8.1.0","chalk":"^4.1.2","commander":"^11.1.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/deployguard_1.0.1_1779957785652_0.20718954996427374","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@amrendrasharma/deployguard","version":"1.0.2","keywords":["cli","deployment","production","checker","devtools","shipcheck","pre-deploy","code-quality"],"author":{"name":"Amrendra Sharma","email":"amrendrasharma1328@gmail.com"},"license":"MIT","_id":"@amrendrasharma/deployguard@1.0.2","maintainers":[{"name":"amrendrasharma","email":"amrendrasharma1328@gmail.com"}],"homepage":"https://github.com/amrendrasharma1328-a11y/shipcheck#readme","bugs":{"url":"https://github.com/amrendrasharma1328-a11y/shipcheck/issues"},"bin":{"deployguard":"bin/cli.js"},"dist":{"shasum":"6470b026f7d37dbb7ec9ff4ba765b0d04ab57a03","tarball":"https://registry.npmjs.org/@amrendrasharma/deployguard/-/deployguard-1.0.2.tgz","fileCount":10,"integrity":"sha512-lfxcwnT2ih6xJ+wB7D3ka+5LwZ2dl+RPz8SoAAwSnZdwmmG1eGnV++XrnrwD0eeiVNNSJEZUI8IGcGYXK5+W4g==","signatures":[{"sig":"MEYCIQC2b+3pEwkSFFwqMgcBJls5HznPfsfFuK8nqtODCUNCzgIhAKShmjkDNwY04m9E/C08N/F7EzBizMBbrSGHIvxDsmPv","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46355},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"84162c21a433348cec4793f25f56b999de9c90e7","scripts":{"dev":"node bin/cli.js --debug","lint":"node bin/cli.js","test":"node bin/cli.js","start":"node bin/cli.js"},"_npmUser":{"name":"amrendrasharma","email":"amrendrasharma1328@gmail.com"},"repository":{"url":"git+https://github.com/amrendrasharma1328-a11y/shipcheck.git","type":"git"},"_npmVersion":"11.6.2","description":"🚀 A lightweight CLI tool that scans your project before deployment and detects common production issues.","directories":{},"_nodeVersion":"24.11.1","dependencies":{"ora":"^5.4.1","glob":"^8.1.0","chalk":"^4.1.2","commander":"^11.1.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/deployguard_1.0.2_1779957923186_0.9096200269836929","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@amrendrasharma/deployguard","version":"1.0.3","keywords":["cli","deployment","production","checker","devtools","shipcheck","pre-deploy","code-quality"],"author":{"name":"Amrendra Sharma","email":"amrendrasharma1328@gmail.com"},"license":"MIT","_id":"@amrendrasharma/deployguard@1.0.3","maintainers":[{"name":"amrendrasharma","email":"amrendrasharma1328@gmail.com"}],"homepage":"https://github.com/amrendrasharma1328-a11y/shipcheck#readme","bugs":{"url":"https://github.com/amrendrasharma1328-a11y/shipcheck/issues"},"bin":{"deployguard":"bin/cli.js"},"dist":{"shasum":"4a5cd9cce00bd3c4026d11d1bdc9e8b0fd242f51","tarball":"https://registry.npmjs.org/@amrendrasharma/deployguard/-/deployguard-1.0.3.tgz","fileCount":10,"integrity":"sha512-qp5nVvdBN7/09aND3OoWEfmg/szs1tQWAeN6ca3M/Tkv0XGu6h43tNNIAUZIfet1kThxGIwHRnAb+nzhgbUilA==","signatures":[{"sig":"MEUCIQC89vTZzE80stZYso33udaUgbJLCnb3BQPlqg8+lVJtVwIgDMipW+WLYs5uqdQQtSthixT4mZ8r5Zq/lAOQclPvO94=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46284},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"ffc70d308b8786a0848c8efa8316953cd8277b45","scripts":{"dev":"node bin/cli.js --debug","lint":"node bin/cli.js","test":"node bin/cli.js","start":"node bin/cli.js"},"_npmUser":{"name":"amrendrasharma","email":"amrendrasharma1328@gmail.com"},"repository":{"url":"git+https://github.com/amrendrasharma1328-a11y/shipcheck.git","type":"git"},"_npmVersion":"11.6.2","description":"🚀 A lightweight CLI tool that scans your project before deployment and detects common production issues.","directories":{},"_nodeVersion":"24.11.1","dependencies":{"ora":"^5.4.1","glob":"^8.1.0","chalk":"^4.1.2","commander":"^11.1.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/deployguard_1.0.3_1779958193823_0.6292623572397309","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@amrendrasharma/deployguard","version":"1.0.4","description":"🚀 A lightweight CLI tool that scans your project before deployment and detects common production issues.","main":"index.js","bin":{"deployguard":"bin/cli.js"},"scripts":{"start":"node bin/cli.js","dev":"node bin/cli.js --debug","test":"node bin/cli.js","lint":"node bin/cli.js"},"keywords":["cli","deployment","production","checker","devtools","shipcheck","pre-deploy","code-quality"],"author":{"name":"Amrendra Sharma","email":"amrendrasharma1328@gmail.com"},"license":"MIT","dependencies":{"chalk":"^4.1.2","commander":"^11.1.0","glob":"^8.1.0","ora":"^5.4.1"},"engines":{"node":">=14.0.0"},"repository":{"type":"git","url":"git+https://github.com/amrendrasharma1328-a11y/shipcheck.git"},"bugs":{"url":"https://github.com/amrendrasharma1328-a11y/shipcheck/issues"},"homepage":"https://github.com/amrendrasharma1328-a11y/shipcheck#readme","gitHead":"ffc70d308b8786a0848c8efa8316953cd8277b45","_id":"@amrendrasharma/deployguard@1.0.4","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-Tv2pm8g+JeRxvfZi5YbRBCUgrcTcA0mNnHcE+UbBlHqufhgPJ6JmYLM+PlIa42XSd5Q3+Np7h7b3m34z2481Og==","shasum":"3fa2523518684e6b1fb554c2ce79a5be491ab28b","tarball":"https://registry.npmjs.org/@amrendrasharma/deployguard/-/deployguard-1.0.4.tgz","fileCount":10,"unpackedSize":46145,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDC0gNFqwni6XJng7bNS5ZJlQ1a0Msqp39abGKvbZ5z1QIhAJ9LmbfQdqCo9fT2kVrlTJG013PlPq3a4/zxuJeOwyH6"}]},"_npmUser":{"name":"amrendrasharma","email":"amrendrasharma1328@gmail.com"},"directories":{},"maintainers":[{"name":"amrendrasharma","email":"amrendrasharma1328@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/deployguard_1.0.4_1779958338642_0.6900630080430594"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-28T08:29:40.990Z","modified":"2026-05-28T08:52:18.905Z","1.0.0":"2026-05-28T08:29:41.370Z","1.0.1":"2026-05-28T08:43:05.816Z","1.0.2":"2026-05-28T08:45:23.315Z","1.0.3":"2026-05-28T08:49:53.964Z","1.0.4":"2026-05-28T08:52:18.774Z"},"bugs":{"url":"https://github.com/amrendrasharma1328-a11y/shipcheck/issues"},"author":{"name":"Amrendra Sharma","email":"amrendrasharma1328@gmail.com"},"license":"MIT","homepage":"https://github.com/amrendrasharma1328-a11y/shipcheck#readme","keywords":["cli","deployment","production","checker","devtools","shipcheck","pre-deploy","code-quality"],"repository":{"type":"git","url":"git+https://github.com/amrendrasharma1328-a11y/shipcheck.git"},"description":"🚀 A lightweight CLI tool that scans your project before deployment and detects common production issues.","maintainers":[{"name":"amrendrasharma","email":"amrendrasharma1328@gmail.com"}],"readme":"\n# 🚢 deployguard\n\n> A lightweight CLI tool that scans your project before deployment and detects common production issues.\n\n[![npm version](https://img.shields.io/npm/v/@amrendrasharma/deployguard.svg)](https://www.npmjs.com/package/@amrendrasharma/deployguard)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Node.js Version](https://img.shields.io/node/v/@amrendrasharma/deployguard.svg)](https://nodejs.org)\n\n---\n\n## ✨ What it does\n\nRun `npx @amrendrasharma/deployguard` in any Node.js project before you deploy and get an instant health check:\n\n```\n──────────────────────────────────────────────────────────────────────────\n  🚢 deployguard v1.0.0 — Pre-deployment project scanner\n──────────────────────────────────────────────────────────────────────────\n\n  Scanning: /Users/you/my-project\n\n  ✔  Scanning for console.log statements...\n  ✔  Checking environment variables...\n  ✔  Checking for unused dependencies...\n  ✔  Scanning for large files (> 5MB)...\n\n──────────────────────────────────────────────────────────────────────────\n  Results\n\n  ⚠   Found 3 console.log statement(s) — remove before deploying\n  ⚠     → src/routes/auth.js:42\n  ⚠     → src/utils/debug.js:7\n  ⚠     → src/utils/debug.js:18\n  ⚠   2 env var(s) from .env not found in environment:\n  ⚠     → STRIPE_SECRET_KEY is not set\n  ⚠     → SENDGRID_API_KEY is not set\n  ✔  All dependencies appear to be in use\n  ⚠   1 large file(s) found — consider adding to .gitignore:\n  ⚠     → assets/promo-video.mp4 (87.3 MB)\n\n──────────────────────────────────────────────────────────────────────────\n\n  ⚠  Deployment Readiness Score: 62/100\n     Several issues need attention\n\n     [████████████████████████░░░░░░░░░░░░░░░░] 62%\n\n──────────────────────────────────────────────────────────────────────────\n```\n\n---\n\n## 🚀 Quick Start\n\nRun without installing:\n```bash\nnpx @amrendrasharma/deployguard\n```\n\nOr install globally:\n```bash\nnpm install -g @amrendrasharma/deployguard\ndeployguard\n```\n\nScan a specific directory:\n```bash\ndeployguard --dir ./my-app\n```\n\n---\n\n## 📦 Installation\n\n```bash\n# Install globally\nnpm install -g @amrendrasharma/deployguard\n\n# Or use as a dev dependency\nnpm install --save-dev @amrendrasharma/deployguard\n```\n\n---\n\n## 🔍 Checks Performed\n\n| Check | Points | What it detects |\n|-------|--------|-----------------|\n| **console.log** | 25 pts | `console.log()` statements left in `.js`, `.ts`, `.jsx`, `.tsx` files |\n| **Environment Variables** | 25 pts | Variables in `.env` that aren't set in the current environment |\n| **Unused Dependencies** | 25 pts | Packages in `package.json` that aren't imported anywhere in source code |\n| **Large Files** | 25 pts | Any file over 5MB (accidentally committed assets, DB dumps, etc.) |\n\n### Scoring\n\n| Score | Status |\n|-------|--------|\n| 90–100 | 🚀 Ready to ship! |\n| 70–89 | ⚠ Minor issues to fix |\n| 50–69 | ⚠ Several issues need attention |\n| 0–49 | ✖ Not ready for deployment |\n\n---\n\n## 🔧 CLI Options\n\n```\nOptions:\n  -d, --dir <path>   Target directory to scan (default: current directory)\n  --no-color         Disable colored output (useful for CI logs)\n  --debug            Show verbose error information\n  -v, --version      Output the current version\n  -h, --help         Show help information\n```\n\n---\n\n## 📂 Project Structure\n\n```\ndeployguard/\n├── bin/\n│   └── cli.js              # CLI entry point (Commander.js setup, orchestration)\n├── checks/\n│   ├── consoleCheck.js     # Scans for console.log statements\n│   ├── envCheck.js         # Verifies .env variables are set\n│   ├── dependencyCheck.js  # Detects unused npm dependencies\n│   └── sizeCheck.js        # Finds files larger than 5MB\n├── utils/\n│   ├── display.js          # Terminal output (banner, colors, score display)\n│   ├── helpers.js          # Pure utility functions (formatBytes, truncatePath)\n│   └── score.js            # Final score calculation\n├── package.json\n├── README.md\n└── .gitignore\n```\n\n---\n\n## 🏗️ Adding to Your Workflow\n\n### npm script (recommended)\n\nAdd to your `package.json`:\n\n```json\n{\n  \"scripts\": {\n    \"precheck\": \"deployguard\",\n    \"deploy\": \"deployguard && your-deploy-command\"\n  }\n}\n```\n\n### GitHub Actions\n\n```yaml\n# .github/workflows/deployguard.yml\nname: Pre-deploy Check\n\non:\n  push:\n    branches: [main]\n  pull_request:\n    branches: [main]\n\njobs:\n  deployguard:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - uses: actions/setup-node@v4\n        with:\n          node-version: '20'\n      - run: npm ci\n      - run: npx @amrendrasharma/deployguard --no-color\n```\n\n---\n\n## 🤝 Contributing\n\n1. Fork the repository: [github.com/amrendrasharma1328-a11y/shipcheck](https://github.com/amrendrasharma1328-a11y/shipcheck)\n2. Create your feature branch: `git checkout -b feat/new-check`\n3. Commit your changes: `git commit -m 'feat: add secretsCheck'`\n4. Push and open a Pull Request\n\n---\n\n## 👨‍💻 Author\n\n**Amrendra Sharma**\n- npm: [@amrendrasharma](https://www.npmjs.com/~amrendrasharma)\n- GitHub: [amrendrasharma1328-a11y](https://github.com/amrendrasharma1328-a11y)\n\n---\n\n## 📄 License\n\nMIT © [Amrendra Sharma](https://github.com/amrendrasharma1328-a11y)\n","readmeFilename":"README.md"}