imports-visitor
JSON →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+).
Traffic · last 30 days ↓57% vs prev 7d
total hits 38
actors 8 distinct systems
last hit 16h ago human
top countries 🇨🇦 Canada · 🇺🇸 United States · 🇫🇷 France · 🇪🇸 Spain · 🇮🇹 Italy
Resources
API endpoints
full doc /v1/registry/imports-visitor
compatibility /v1/registry/imports-visitor/compatibility