HoneyBadger CLI is a command-line interface and programmatic API for HoneyBadger, a Rust-based ES2015+ to ES5 transpiler, bundler, and minifier. Version 1.0.1 provides both a CLI with version, help, file/string input, output, minification toggle, and AST printing options, as well as a JavaScript API via the default export Badger class with methods like getVersion(), getUsage(), process(options), and access to a native rust module with transform() and parse(). This package is experimental and not suitable for production; it uses native Rust bindings and has infrequent updates (last release 1.0.1, previous 0.0.3). Key differentiator: Rust performance for transpilation vs Babel or esbuild, but very early stage and limited features.
npm install ratelNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import the default Badger class, create an instance, use getVersion, process a string with pretty formatting, and use the native transform method to minify.
Use default import: import Badger from 'honey-badger-cli'
Ensure the native module is built properly; if not, instance.badger may be undefined.
Consider using Babel, swc, or esbuild for production use.
Do not rely on AST output for production code.
Run 'npm install honey-badger-cli' and ensure you are using the correct import path.
Change to: import Badger from 'honey-badger-cli'
Pass either { file: 'path' } or { string: 'code' } to process().No dependency data recorded yet.