Transforms Elm Debug.log output in the browser console into structured, formatted log objects with custom formatters. Current stable version is 1.2.1, released as needed. Key differentiators: works with both Chrome and Firefox custom formatters, exposes a parse() function for programmatic use, and supports simple_mode for reduced verbosity. Unlike basic console logging, it parses Elm's debug output into typed JSON structures. Ships TypeScript declarations, available as ESM/CJS and via CDN.
npm install elm-debug-transformerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use register() to enhance Elm Debug.log output, and parse() to manually convert debug strings to structured objects.
Ensure tag strings contain only a-zA-Z and spaces. Example: Debug.log "My Tag" value instead of Debug.log "Tag (1)" value.
Replace 'import ElmDebugger from "elm-debug-transformer";' with 'import { register, parse } from "elm-debug-transformer";'.Upgrade to v1.1.0 or later to use parse().
Change import to: import { register } from 'elm-debug-transformer';Call register() before any console.log calls. Ensure tag only uses a-zA-Z and spaces.
No dependency data recorded yet.