{"library":"imports-visitor","type":"library","category":null,"description":"Babel visitor that simplifies working with import and require calls in AST traversal. Version 2.1.0 provides ImportDefinition objects for each imported symbol, supporting both ESM imports and CJS require, dynamic imports, type imports, and re-exports. Designed for use in babel plugins or with @babel/traverse, it offers methods like remove() and fork() to modify import statements. Differentiates from higher-level tools like transform-imports by giving direct access to the underlying AST nodes with a minimal, focused API. Actively maintained with peer dependencies on @babel/core, @babel/runtime, and @babel/types (compatible with Babel 7+).","language":"javascript","status":"active","version":"2.1.0","tags":["javascript","transform","codemod","rewrite","import","require","recast","babel","jscodeshift"],"last_verified":"Wed May 27","install":[{"cmd":"npm install imports-visitor","imports":["import importsVisitor from 'imports-visitor'","import type { ImportDefinition } from 'imports-visitor'","import type { VisitorState } from 'imports-visitor'"]},{"cmd":"yarn add imports-visitor","imports":[]},{"cmd":"pnpm add imports-visitor","imports":[]}],"homepage":null,"github":"https://github.com/suchipi/transform-imports","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/imports-visitor","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/imports-visitor/compatibility"}}