{"library":"babel-plugin-detective","type":"library","category":null,"description":"A Babel plugin (versions 5 & 6) that scans the AST for import statements and require() calls, extracting dependency strings and location data. Works with both ESM imports and CommonJS requires, including dynamic expressions. Metadata is stored on the Babel result and can be retrieved via a convenience method. It provides fine-grained filtering via options like `import`, `export`, `require`, and `generated`. Stable version is 2.0.0, which only supports Babel 5/6 (not Babel 7+). Compatible with Node >=0.10.0.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","babel-plugin","detective","require","import","dependencies","scan","traverse"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-detective","imports":["const detective = require('babel-plugin-detective');","const metadata = detective.metadata(babelResult);","import babel from 'babel-core';\nconst result = babel.transformFileSync('file.js', {\n  plugins: [['detective', { import: false }]]\n});"]},{"cmd":"yarn add babel-plugin-detective","imports":[]},{"cmd":"pnpm add babel-plugin-detective","imports":[]}],"homepage":null,"github":"https://github.com/avajs/babel-plugin-detective","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-detective","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/babel-plugin-detective/compatibility"}}