{"library":"depcheck","type":"library","category":null,"description":"Depcheck is a widely used command-line interface (CLI) tool and programmatic library for analyzing Node.js project dependencies. Its primary function is to identify unused dependencies, detect missing dependencies required by the codebase, and provide insights into how declared dependencies are actually utilized. The current stable version is 1.4.7. While not adhering to a strict release schedule, the project is actively maintained, with multiple patch releases in 2023 and 2021, and significant updates including a breaking change in 2020 (v1.3.x). A key differentiator for Depcheck is its extensive syntax support, covering not only standard JavaScript (ES5-ES7) and React JSX but also CoffeeScript, TypeScript, SASS/SCSS, and Vue.js. Furthermore, it includes 'special' components designed to recognize dependencies used within various configuration files for tools like Babel, ESLint, Webpack, Jest, and Serverless, moving beyond basic `import` or `require` statements. This comprehensive analysis helps developers maintain leaner, more efficient codebases by facilitating the removal of unnecessary packages, which can improve performance and reduce bundle sizes.","language":"javascript","status":"active","version":"1.4.7","tags":["javascript","check","unused","package","packages","depcheck","dependency","dependencies","devDependencies","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install depcheck","imports":["import depcheck from 'depcheck';\n// Or for CommonJS:\n// const depcheck = require('depcheck');","import type { Options as DepcheckOptions, Results as DepcheckResults } from 'depcheck';","import depcheck from 'depcheck';\n// ... then access parsers via depcheck.parser.jsx or similar"]},{"cmd":"yarn add depcheck","imports":[]},{"cmd":"pnpm add depcheck","imports":[]}],"homepage":"https://npmjs.com/package/depcheck","github":"https://github.com/depcheck/depcheck","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/depcheck","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/depcheck/compatibility"}}