{"library":"nodent-compiler","title":"nodent-compiler","description":"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.","language":"javascript","status":"maintenance","last_verified":"Fri May 01","install":{"commands":["npm install nodent-compiler"],"cli":{"name":"nodent-compiler","version":null}},"imports":["const NodentCompiler = require('nodent-compiler');\nconst compiler = new NodentCompiler();","new NodentCompiler()","compiler.compile(sourceCode, filename, options)"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const NodentCompiler = require('nodent-compiler');\nconst compiler = new NodentCompiler();\nconst sourceCode = `async function fetchData() { return await Promise.resolve(42); }`;\nconst result = compiler.compile(sourceCode, 'test.js', { promises: true, noRuntime: true, sourcemap: false });\nconsole.log(result.code);","lang":"javascript","description":"Demonstrates instantiation of NodentCompiler and compilation of a simple async/await function to ES5 using promises mode without runtime.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}