You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tim neutkens
888a883fd5
|
8 years ago | |
---|---|---|
README.md | 8 years ago | |
index.js | 8 years ago | |
index.test.js | 8 years ago | |
package.json | 8 years ago | |
yarn.lock | 8 years ago |
README.md
is-async-supported
Check if async/await is available
Installation
npm install is-async-supported
Usage
const isAsyncSupported = require('is-async-supported')
if(!isAsyncSupported()) {
// Load runtime transform
}
Background
This package gives you the ability to load for example async-to-gen only when your Node.js environment doesn't support async/await.
At the moment this is not suitable for checking in browsers since it depends on the VM
module provided by Node.js