es7-async-await

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

Usage no npm install needed!

<script type="module">
  import es7AsyncAwait from 'https://cdn.skypack.dev/es7-async-await';
</script>

README

es7-async-await

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.