babel-log is a lightweight utility for logging Babel AST paths and nodes with clean, colored formatting in the console. As of version 2.0.0, it provides a single default-exported function that accepts any object, making it ideal for debugging Babel plugins. It is in active development with a low release cadence. Unlike manual console.log, babel-log formats complex AST structures for readability.
npm install babel-logVerified import paths — ran on the pinned version, not inferred.
This shows how to import and use babel-log inside a Babel plugin to log AST nodes during traversal.
Use it only for debugging; do not rely on return value.
Use import log from 'babel-log' (without curly braces).
Run npm install babel-log --save-dev
No dependency data recorded yet.