babel-plugin-auto-async
v1.0.2
Published
Automatically makes functions asynchronous - makes for cleaner code when testing using HipTest generated mocha/js templates and selenium webdriver
Downloads
2
Readme
Imagined usage
I'm using this with babel-plugin-auto-await to allow me to really lazily write asynchronous code as if it was synchronous. Specifically using it so that i don't have to edit the synchronous boilerplate returned from HipTest auto generated projects. This allows me to refresh the tests from the server but still work with the asynchronous nature of webdriver.
Installation
npm install --save-dev babel-plugin-auto-async
Usage
Via .babelrc (Recommended)
.babelrc
{
"plugins": ["auto-async"]
}
Via CLI
babel-node --plugins auto-async script.js
Via Node API
require("babel-core").transform("code", {
plugins: ["auto-async"]
});