Displaying 1 to 2 from 2 results

recast - JavaScript syntax tree transformer, nondestructive pretty-printer, and automatic source map generator

  •    Javascript

In less poetic terms, Recast exposes two essential interfaces, one for parsing JavaScript code (require("recast").parse) and the other for reprinting modified syntax trees (require("recast").print). See ast-types (especially the def/core.js) module for a thorough overview of the ast api.

es7-async-await - Transformer that converts async functions and await expressions into ECMAScript 6 generator functions and yield expressions

  •    Javascript

Transformer that converts async functions and await expressions into ECMAScript 6 generator functions and yield expressions. Note that this transform is only really useful if you know you're targeting a platform that supports generator functions natively. Otherwise, you're better off using Regenerator, since it has the ability to transform async functions into ES5 without creating immediately-invoked GeneratorFunctions.