nodent-compiler is a core compiler for transforming ES7 async/await syntax into ES5-compatible code. Version 3.2.13 is the latest stable release, with a slow release cadence. It supports multiple compilation modes including ES7, Promises, generators, and engine, with options for sourcemaps, lazy thenables, and ES6 target. Compared to Babel or TypeScript, nodent specifically targets Node.js environments and offers fine-grained control over async transformation without additional syntax extensions. It requires nodent-runtime for certain modes and Promises availability.
npm install nodent-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates instantiation of NodentCompiler and compilation of a simple async/await function to ES5 using promises mode without runtime.
Update calls from compiler.compile(sourceCode, options) to compiler.compile(sourceCode, filename, options).
Declare module or use require: const NodentCompiler = require('nodent-compiler');Run npm install nodent-runtime or set promises:true and noRuntime:true to avoid runtime dependency.
Use promises: true instead of es7: true.
Enable es6target: true to allow ES6 syntax in source code.
Install nodent-runtime: npm install nodent-runtime, or set options promises:true and noRuntime:true to avoid the dependency.
Use const NodentCompiler = require('nodent-compiler'); then new NodentCompiler();Ensure call signature is compiler.compile(sourceCode, filename, options) where filename can be null but must be present.
Ensure the function is declared async and that the compiler options include promises: true or appropriate mode.