711ed8167a4b28ee77dcb5ac9111ebb9e0cd17b13f536aca6ad8d028793ae2284e859117b949edc641b2de34da370ef1c23e90a894b576b9045d661205bb95 462 B

1234567891011121314151617181920212223242526272829303132333435
  1. # babel-plugin-syntax-async-functions
  2. Allow parsing of async functions.
  3. ## Installation
  4. ```sh
  5. $ npm install babel-plugin-syntax-async-functions
  6. ```
  7. ## Usage
  8. ### Via `.babelrc` (Recommended)
  9. **.babelrc**
  10. ```json
  11. {
  12. "plugins": ["syntax-async-functions"]
  13. }
  14. ```
  15. ### Via CLI
  16. ```sh
  17. $ babel --plugins syntax-async-functions script.js
  18. ```
  19. ### Via Node API
  20. ```javascript
  21. require("babel-core").transform("code", {
  22. plugins: ["syntax-async-functions"]
  23. });
  24. ```