{"_id":"@alialhadiabokhalil/dep-cleaner","name":"@alialhadiabokhalil/dep-cleaner","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@alialhadiabokhalil/dep-cleaner","version":"1.0.0","description":"An intelligent tool to identify and clean unused dependencies from Node.js projects","main":"src/index.js","bin":{"dep-cleaner":"bin/dep-cleaner.js"},"scripts":{"test":"jest"},"keywords":["dependencies","cleanup","node","npm","ai"],"author":"","license":"MIT","dependencies":{"@babel/parser":"^7.23.0","@babel/traverse":"^7.23.0","chalk":"^4.1.2","cli-table3":"^0.6.3","commander":"^11.1.0","eslint-scope":"^7.2.2","fast-glob":"^3.3.1","openai":"^4.97.0","ora":"^5.4.1"},"devDependencies":{"jest":"^29.7.0"},"engines":{"node":">=14.0.0"},"_id":"@alialhadiabokhalil/dep-cleaner@1.0.0","gitHead":"f7ce7e4690b73934a531bce2a55774980ea884c4","_nodeVersion":"20.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-Ki4ZXWB+GCV/LRxnNNCEQ8GDNy0SpDk6PxuE1Li6kve4w4rqmWXghcVe/SZAv5q611Mg58LbfpkPGhGTAn88PA==","shasum":"59ea0598d16e6a53d536bd00a310fb1c79404ceb","tarball":"https://registry.npmjs.org/@alialhadiabokhalil/dep-cleaner/-/dep-cleaner-1.0.0.tgz","fileCount":12,"unpackedSize":40374,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAFmQ7a/pPy2Lk+gbXbNh2zVd9V0rXJkaSkXG4CC82GJAiAmt4mDlAgZnm2QompDdioj8SjEHJkxTB61cnbQJ4aFrQ=="}]},"_npmUser":{"name":"alialhadiabokhalil","email":"alialhadiabokhalil@gmail.com"},"directories":{},"maintainers":[{"name":"alialhadiabokhalil","email":"alialhadiabokhalil@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dep-cleaner_1.0.0_1746461357975_0.4710822324629935"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-05T16:09:17.852Z","1.0.0":"2025-05-05T16:09:18.243Z","modified":"2025-05-05T16:09:18.524Z"},"maintainers":[{"name":"alialhadiabokhalil","email":"alialhadiabokhalil@gmail.com"}],"description":"An intelligent tool to identify and clean unused dependencies from Node.js projects","keywords":["dependencies","cleanup","node","npm","ai"],"license":"MIT","readme":"# dep-cleaner\r\n\r\nAn intelligent command-line tool to identify and clean unused dependencies from Node.js projects.\r\n\r\n## Features\r\n\r\n- Scans your entire codebase to identify all imported modules\r\n- Analyzes which dependencies are actually used\r\n- Identifies unused dependencies and those imported but not utilized\r\n- Automatically removes unused dependencies from package.json and uninstalls them\r\n- Integrates with AI to handle complex scenarios and provide intelligent suggestions\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm install -g dep-cleaner\r\n```\r\n\r\n## Usage\r\n\r\n### Scan your project for unused dependencies\r\n\r\n```bash\r\ndep-cleaner scan\r\n```\r\n\r\nThis will scan your project and display a report of used and unused dependencies without making any changes.\r\n\r\n### Clean unused dependencies\r\n\r\n```bash\r\ndep-cleaner clean\r\n```\r\n\r\nThis will scan your project, identify unused dependencies, and automatically remove them after confirmation.\r\n\r\n### Generate a detailed report\r\n\r\n```bash\r\ndep-cleaner report\r\n```\r\n\r\nThis will generate a detailed report of all dependencies, their usage status, and recommendations.\r\n\r\n## Configuration\r\n\r\nYou can configure dep-cleaner by creating a `.depcleanerrc.json` file in your project root:\r\n\r\n```json\r\n{\r\n  \"ignore\": [\"dist\", \"build\", \"coverage\"],\r\n  \"alwaysKeep\": [\"react\", \"react-dom\"],\r\n  \"alwaysRemove\": [],\r\n  \"aiEnabled\": true,\r\n  \"aiConfidenceThreshold\": 0.8\r\n}\r\n```\r\n\r\n## Precautions\r\n\r\n- Always backup your project or use version control before removing dependencies\r\n- Review AI suggestions, especially for critical dependencies\r\n- Test your application thoroughly after cleaning to ensure functionality remains intact\r\n\r\n## License\r\n\r\nMIT","readmeFilename":"README.md","_rev":"1-6cf05c2dfd930705e51cebc7e37738fd"}