Hedgehog-transpiler is a JavaScript transpiler (version 1.0.1) that converts modern JavaScript/JSX into backward-compatible code for older environments. It is designed as a fast, minimal alternative to Babel, with a focus on simplicity and zero configuration. The package is early-stage with no breaking changes reported yet. Key differentiators include a small footprint and easy setup, though it lacks the plugin ecosystem and browser support of Babel.
npm install hedgehog-transpilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Transpiles an arrow function with template literals to ES5 compatible code.
Use import syntax instead of require. If using Node.js, ensure type: 'module' in package.json or use .mjs extension.
Import the transform function directly: import hedgehog from 'hedgehog-transpiler' instead of import { transform } from 'hedgehog-transpiler'.If you need advanced features (e.g., decorators, TypeScript), consider using Babel instead.
Run npm install hedgehog-transpiler and ensure your import uses the correct path: import { transform } from 'hedgehog-transpiler'.Use import hedgehog from 'hedgehog-transpiler' or import { transform } from 'hedgehog-transpiler' if you want the named export.Switch to ESM by adding 'type': 'module' to package.json or use .mjs file extension.
No dependency data recorded yet.