A RegExp-based transpiler for Node.js that converts ES import/export statements to CommonJS require/module.exports and supports JSX, with zero dependencies. Current stable version is 3.7.1, released with irregular cadence. Differentiators: minimal transformation preserving line numbers and original code structure, no interop wrappers, no dependency on Babel or AST, making it lightweight and fast. Suitable for projects that only need simple module transpilation without full ES module semantics.
npm install alamodeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Transpiles a simple ES module with import and export to CommonJS using alamode's default export.
For dynamic imports, use native ESM or a more complete transpiler. For re-exports, rewrite as individual exports.
Explicitly include files via --require with full path or use the CLI for building.
Review transpiled JSX output; consider using Babel for complex JSX.
Use Node.js >=10 for full support.
Ensure the file is processed by alamode: use CLI or require hook with correct extension (.js). Check that the source code uses static import/export.
Run 'npm install alamode' or 'yarn add alamode'. Ensure node_modules is accessible.
Use 'import alamode from 'alamode'' (default) or 'const alamode = require('alamode').default' (CJS).No dependency data recorded yet.