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.
 
Luke Childs ee35ceb854 Mention browser compatibility in the readme 7 years ago
README.md Mention browser compatibility in the readme 7 years ago
index.js Use eval instead of vm.Script 7 years ago
index.test.js Rewrite to use VM 8 years ago
package.json Rewrite to use VM 8 years ago
yarn.lock Rewrite to use VM 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 environment doesn't support async/await.

Suitable for use in the browser and Node.js.