JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 95
  • Score
    100M100P100Q71156F

Browserify transform for ES7 async/await keywords

Package Exports

  • browserify-nodent

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (browserify-nodent) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

browserify-nodent

browserify-nodent is a transform for browserify that compiles the ES7 keywords async and await for your ES5 browser. It doesn't need Promises or Generators, or anything else - it just generates working JavaScript.

The compiler itself is nodent, where you can more infromation and examples of async and await in action.

Installation

npm install browserify-nodent

Example

npm test

Compiles using the command line:

cd example
browserify -t browserify-nodent --debug main.js >out.js
open ./index.html
cd ..

Opening the resulting example/index.html will demonstrate the use of async and await in your HTML/JS pages in the browser.